debug button/menu interactions
This commit is contained in:
12 files changed
+844
-834
No files matched your search
+1
-19
@@ -124,25 +124,7 @@ module.exports = {
|
||||
|
||||
const SelectSettings = new ActionRowBuilder().addComponents(settingsMenu);
|
||||
|
||||
interaction.send({ components: [SelectSettings], flags: (1 << 6) });
|
||||
|
||||
client.on("interactionCreate", MenuInteraction => {
|
||||
if(!MenuInteraction.isSelectMenu()) return;
|
||||
if (!MenuInteraction.customId.endsWith(MenuInteraction.member.user.id)) {
|
||||
return MenuInteraction.reply({
|
||||
content: "This button is not for you",
|
||||
flags: (1 << 6)
|
||||
})
|
||||
}
|
||||
|
||||
const setting = settings.settings.find(setting => setting.name === MenuInteraction.values[0]);
|
||||
const settingEmbed = new EmbedBuilder()
|
||||
.setColor(client.config.Colors.Default)
|
||||
.setTitle(setting.name)
|
||||
.setDescription(setting.description)
|
||||
|
||||
return MenuInteraction.update({ embeds: [settingEmbed], components: [] });
|
||||
});
|
||||
interaction.send({ components: [SelectSettings], flags: (1 << 6) });
|
||||
|
||||
} else if (args[0].name == 'support') {
|
||||
const supportEmbed = new EmbedBuilder()
|
||||
|
||||
Reference in new issue
Block a user