Comparing version 6.6.6 to 6.6.7
{ | ||
"name": "azel", | ||
"version": "6.6.6", | ||
"version": "6.6.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -6,2 +6,3 @@ const { Message } = require("discord.js") | ||
* @name Mention | ||
* @param constructor | ||
* @param {Object} options | ||
@@ -15,3 +16,2 @@ * @param {any} [options.message] the discord 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') | ||
@@ -23,4 +23,12 @@ | ||
} | ||
async start() { | ||
if(this.mention === true) { | ||
this.message.channel.send(`<@${this.member.id}>`) | ||
} else { | ||
this.message.channel.send(this.member.nickname || 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
41283
761