Skip to content

Commit 76321e3

Browse files
committed
fix: fix typescript errors
1 parent 262ac25 commit 76321e3

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/v2/commands/repel/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ export const repelInteraction: CommandDataWithHandler = {
6363
if (!interaction.inGuild() || !interaction.guild) {
6464
await reply(interaction, 'This command can only be used in a server.');
6565
}
66+
if (!interaction.isChatInputCommand()) {
67+
await reply(
68+
interaction,
69+
'This command can only be used as a slash command.',
70+
);
71+
return;
72+
}
6673
const repelRole = interaction.guild.roles.cache.find(
6774
role => role.id === REPEL_ROLE_ID,
6875
);

0 commit comments

Comments
 (0)