mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
fix(discord-bot): not executing slash commands
This commit is contained in:
@@ -4,11 +4,9 @@ export default {
|
||||
name: Events.InteractionCreate,
|
||||
once: false,
|
||||
async execute(interaction) {
|
||||
if (
|
||||
!interaction.isMessageContextMenuCommand() ||
|
||||
!interaction.isChatInputCommand()
|
||||
)
|
||||
return;
|
||||
if (!interaction.isMessageContextMenuCommand()) {
|
||||
if (!interaction.isChatInputCommand()) return;
|
||||
}
|
||||
|
||||
const command = interaction.client.commands.get(interaction.commandName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user