Comparing version 4.3.3 to 4.4.4
{ | ||
"name": "azel", | ||
"version": "4.3.3", | ||
"version": "4.4.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,4 +10,6 @@ const { Message } = require("discord.js") | ||
* @param {Boolean} [options.mention] mention the member if it's true | ||
* @param {Message} message | ||
*/ | ||
constructor(options) { | ||
if(!options.message) throw new TypeError('Voider Error: Missing argument message'); | ||
if(!options.member) throw new TypeError('Voider Error: Missing argument member'); | ||
@@ -24,5 +26,6 @@ if(!options.mention) throw new TypeError('Voider Error: Missing argument mention') | ||
if(this.mention === true) { | ||
this.message.channel.send(this.member) | ||
} else if(this.mention === false) { | ||
this.message.channel.send(this.member.username) | ||
message.channel.send(this.member.user) | ||
} | ||
if(this.mention === false) { | ||
message.channel.send(this.member.nickname || this.member.user.username) | ||
} | ||
@@ -29,0 +32,0 @@ |
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
41401
763