Skip to content
This repository has been archived by the owner on Apr 6, 2024. It is now read-only.

Commit

Permalink
Fix autocomplete ig
Browse files Browse the repository at this point in the history
  • Loading branch information
RainyXeon authored Oct 19, 2023
1 parent 0e35890 commit 19f989e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/events/guild/interactionCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 19f989e

Please sign in to comment.