New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 6.6.7 to 6.7.7

2

package.json
{
"name": "azel",
"version": "6.6.7",
"version": "6.7.7",
"description": "",

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

@@ -1,10 +0,29 @@

const { Message, MessageEmbed } = require("discord.js")
const { Message } = require("discord.js")
async function someone(message, mention = false) {
class someone {
/**
* @name someone
* @param constructor
* @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 TypeError('Voider Error: Missing argument message');
if(typeof options.mention !== 'boolean') throw new TypeError('Voider Error: mention argument must be a boolean')
const eh = message.guild.members.cache.random()
this.message = options.message;
this.mention = options.mention;
}
return eh;
async start() {
if(this.mention === true) {
this.message.channel.send(`<@${this.message.guild.members.cache.random().id}>`)
} else {
this.message.channel.send(this.message.guild.members.cache.random().nickname || this.message.guild.members.cache.random().user.username)
}
}
}
module.exports = someone
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