Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

azel

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azel - npm Package Compare versions

Comparing version 5.6.6 to 6.6.6

2

package.json
{
"name": "azel",
"version": "5.6.6",
"version": "6.6.6",
"description": "",

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

@@ -6,14 +6,12 @@ const { Message } = require("discord.js")

* @name Mention
* @param {object} options
* @param {object} [options.message] the discord message
* @param {object} [options.member] pick a member
* @param {Object} options
* @param {any} [options.message] the discord message
* @param {any} [options.member] pick a member
* @param {boolean} [options.mention] mention the member if it's true
*/
constructor(options) {
if(!options.message) throw new Error('Voider Error: Missing argument message');
if(typeof options.message !== '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')
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')

@@ -24,12 +22,4 @@ this.message = options.message;

}
async start() {
if(this.mention = true) {
this.message.channel.send(this.member.user)
} else {
this.message.channel.send(this.member.user.username)
}
}
}
module.exports = Mention
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