1.0.4 • Published 3 years ago
silver-easy v1.0.4
Silver-Easy
Silver-easy is a npm package made by SilverGamez_3 (SilverGamez#6333) that mades discord.js easier.
Installation
You must have Node.js installed.
NPM page: https://www.npmjs.com/package/silver-easy
WARNING: .xp() and .level() will not work if you are on any free hosting sites.
npm i silver-easy
Import Package
const SilverEasy = require('silver-easy');
Methods:
.buttonMenu()
const SilverEasy = require('silver-easy');
const Discord = require('discord.js');
const embed1 = new Discord.MessageEmbed().setTitle('Page one');
const embed2 = new Discord.MessageEmbed().setTitle('Page two');
const userid = message.author.id;
const embedArray = [embed1, embed2];
const emojiArray = ['◀️', '▶️']; //this is the default but you can change it
require('discord-buttons')(client);
require('discord-slider')(client);
SilverEasy.buttonMenu(message, userid, embedArray, emojiArray); //this will create the message with buttons.
Warning: If you get a error saying "cannot send empty message", its fine. There isnt a way i know to fix it.
Preview
.chatBot()
//this should be in your message event
const SilverEasy = require('silver-easy');
SilverEasy.chatBot(message, 'CHANNEL ID') //replace 'CHANNEL ID' with the channels id you want your chatbot to be responding in
Preview
.xp()
const SilverEasy = require('silver-easy');
//this should be in your message event
SilverEasy.xp(message, 'MAX NUMBER', 'MIN NUMBER') //replace max number with the max amount of xp a user can get and you can replace min number with the min amount of xp a user can get
.level()
const SilverEasy = require('silver-easy');
SilverEasy.level(message, userID); //the default userID will be message.author.id and will send a embed