Comparing version 5.5.5 to 5.5.6
{ | ||
"name": "azel", | ||
"version": "5.5.5", | ||
"version": "5.5.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -6,12 +6,14 @@ const { Message } = require("discord.js") | ||
* @name Mention | ||
* @param {Object} options | ||
* @param {any} [options.message] the discord message | ||
* @param {any} [options.member] pick a member | ||
* @param {object} options | ||
* @param {object} [options.message] the discord message | ||
* @param {object} [options.member] pick a member | ||
* @param {boolean} [options.mention] mention the member if it's true | ||
*/ | ||
constructor(options) { | ||
if(!options.message) throw new TypeError('Voider Error: Missing argument message'); | ||
if(!options.member) throw new TypeError('Voider Error: Missing argument member'); | ||
if(!options.mention) throw new TypeError('Voider Error: Missing argument mention') | ||
if(typeof options.mention !== 'boolean') throw new TypeError('Voider Error: mention argument must be a boolean') | ||
if(!options.message) throw new Error('Voider Error: Missing argument message'); | ||
if(typeof options.mention !== 'object') throw new TypeError('Voider Error: message argument must be an object') | ||
if(!options.member) throw new Error('Voider Error: Missing argument member'); | ||
if(typeof options.member!== 'object') throw new TypeError('Voider Error: member argument must be an object') | ||
if(!options.mention) throw new Error('Voider Error: Missing argument mention') | ||
if(typeof options.mention !== 'boolean') throw new Error('Voider Error: mention argument must be a boolean') | ||
@@ -24,8 +26,10 @@ this.message = options.message; | ||
async start() { | ||
if(true) { | ||
this.message.channel.send(this.member || this.member.user.username) | ||
if(this.mention = true) { | ||
this.message.channel.send(this.member.user) | ||
} else { | ||
this.message.channel.send(this.member.user.username) | ||
} | ||
} | ||
} | ||
} | ||
module.exports = Mention |
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
41549
763