Comparing version 2.3.0 to 2.3.1
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 @@ } |
{ | ||
"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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20967
557