Socket
Socket
Sign inDemoInstall

ksoft.js

Package Overview
Dependencies
Maintainers
2
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ksoft.js - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1

7

lib/structures/Ban.js
const BannedUser = require('./BannedUser');
const { noop } = require('../util');
try {
const { User } = require('discord.js');
} catch { noop }
class Ban {

@@ -14,3 +19,5 @@ constructor(options = {}) {

setUser(id, name, discriminator) {
if (User && id instanceof User) ({ id, username: name, discriminator } = id);
this.user = new BannedUser({ id, name, discriminator });
return this;

@@ -17,0 +24,0 @@ }

2

package.json
{
"name": "ksoft.js",
"version": "2.3.0",
"version": "2.3.1",
"description": "Official Node.js Wrapper for the KSoft.Si API.",

@@ -5,0 +5,0 @@ "main": "src/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc