1.0.0 • Published 4 years ago

discord-utility-package v1.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

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!