discord-utility-package

1.0.0 • Public • Published

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!

/discord-utility-package/

    Package Sidebar

    Install

    npm i discord-utility-package

    Weekly Downloads

    3

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    6.01 kB

    Total Files

    8

    Last publish

    Collaborators

    • thelastgamer1806