UNPKG

discord-utility-package

Version:
39 lines (23 loc) 782 B
# Information for the package: This package can help you make commands in a single line! # How To Install: ```npm i discord-utility``` # Example: ```javascript 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!