Command
The actual help command, to start the magic.
if (command == 'help') {
// our help command will be here
}const options = {
limit: 15 * 1000,
min: 1,
max: 2, // there will be 2 pages
page: 1
}Last updated
The actual help command, to start the magic.
if (command == 'help') {
// our help command will be here
}const options = {
limit: 15 * 1000,
min: 1,
max: 2, // there will be 2 pages
page: 1
}Last updated
// don't worry, we'll define pages next
const m = await msg.channel.send({ embed: pages[options.page] });
await m.react('⬅');
await m.react('➡');
await m.react('🗑');const pages = {
1: { title: ':one:', description: 'This is page one!' },
2: { title: ':two:', description: 'This is page two!' }
}const filter = (reaction, user) => {
return ['⬅', '➡', '🗑'].includes(reaction.emoji.name) && user.id == msg.author.id;
};
awaitReactions(msg, m, options, filter);