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