diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-04-27 19:29:44 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-04-27 19:29:44 -0400 |
commit | 8d1d62a6ccacd8e35089d1b7fed078bdb9cb6f8e (patch) | |
tree | 1fa73919413d36786290d9a35c606083222f992f /src | |
parent | e762481d659430f19e96034154fb84e0d5c1c369 (diff) | |
download | tanzanite-8d1d62a6ccacd8e35089d1b7fed078bdb9cb6f8e.tar.gz tanzanite-8d1d62a6ccacd8e35089d1b7fed078bdb9cb6f8e.tar.bz2 tanzanite-8d1d62a6ccacd8e35089d1b7fed078bdb9cb6f8e.zip |
fix(buttonRoles): ephemeral error
Diffstat (limited to 'src')
-rw-r--r-- | src/listeners/interaction/interactionCreate.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/listeners/interaction/interactionCreate.ts b/src/listeners/interaction/interactionCreate.ts index 7d26d34..13c4c74 100644 --- a/src/listeners/interaction/interactionCreate.ts +++ b/src/listeners/interaction/interactionCreate.ts @@ -26,7 +26,7 @@ export default class InteractionCreateListener extends BushListener { else if (id.startsWith('button-role;') && interaction.inCachedGuild()) { const [, roleId] = id.split(';'); const role = interaction.guild.roles.cache.get(roleId); - if (!role) return interaction.reply({ content: `${util.emojis.error} That role does not exist.` }); + if (!role) return interaction.reply({ content: `${util.emojis.error} That role does not exist.`, ephemeral: true }); const has = interaction.member.roles.cache.has(roleId); await interaction.deferReply({ ephemeral: true }); if (has) { |