nodbot/CustomModules/ButtonHandlers.js

22 lines
609 B
JavaScript
Raw Normal View History

const customEmbeds = require('../CustomModules/Embeds.js');
module.exports = {
baseEvent(interaction) {
console.log(interaction.component.customId);
switch (interaction.component.customId) {
// Any of the gifsPage Buttons
case 'prevGifsPage' || 'nextGifsPage' :
break;
default:
return;
}
},
gifsPage(interaction, gifs, page) {
switch (buttonId) {
case 'prevGifsPage':
return 'previous';
case 'nextGifsPage':
return 'next';
}
}
}