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