1.0.0 • Published 4 years ago
discord-utility-package v1.0.0
Information for the package:
This package can help you make commands in a single line!
How To Install:
npm i discord-utility
Example:
const Discord = require("discord.js");
const client = new Discord.Client();
const { Utility } = require("discord-utility");
const utility = new Utility();
const prefix = 'Your-Prefix-Here'
client.on('ready', () => {
console.log(`Ready! Logged in as ${client.user.tag}!`)
})
client.on('message', async message => {
if(message.content.startsWith(`${prefix}avatar`)) {
let user = message.mentions.users.first() || message.author;
utility.avatar(message); // No need for sending embeds or any message, this line will do all the work for you!
}
})
client.login('Your Token Here')
Will be adding more soon!
1.0.0
4 years ago