We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 262ac25 commit 76321e3Copy full SHA for 76321e3
1 file changed
src/v2/commands/repel/index.ts
@@ -63,6 +63,13 @@ export const repelInteraction: CommandDataWithHandler = {
63
if (!interaction.inGuild() || !interaction.guild) {
64
await reply(interaction, 'This command can only be used in a server.');
65
}
66
+ if (!interaction.isChatInputCommand()) {
67
+ await reply(
68
+ interaction,
69
+ 'This command can only be used as a slash command.',
70
+ );
71
+ return;
72
+ }
73
const repelRole = interaction.guild.roles.cache.find(
74
role => role.id === REPEL_ROLE_ID,
75
);
0 commit comments