From 19f989ebc7d0562bab2f5152464e7e18d0952bba Mon Sep 17 00:00:00 2001 From: RainyXeon / Date: Thu, 19 Oct 2023 14:46:57 +0700 Subject: [PATCH] Fix autocomplete ig --- src/events/guild/interactionCreate.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/events/guild/interactionCreate.js b/src/events/guild/interactionCreate.js index fae8192..a9b69a2 100644 --- a/src/events/guild/interactionCreate.js +++ b/src/events/guild/interactionCreate.js @@ -21,10 +21,11 @@ const REGEX = [ module.exports = async (client, interaction) => { if ( - interaction.isCommand || - interaction.isContextMenuCommand || - interaction.isModalSubmit || - interaction.isChatInputCommand + interaction.isCommand() || + interaction.isContextMenuCommand() || + interaction.isModalSubmit() || + interaction.isChatInputCommand() || + interaction.isAutocomplete() ) { if (!interaction.guild || interaction.user.bot) return; if (!client.is_db_connected)