Skip to content

Commit

Permalink
fix(commands:translate): do not interfere with other commands during …
Browse files Browse the repository at this point in the history
…autocompletion
  • Loading branch information
virtual-designer committed Feb 17, 2024
1 parent b167ac5 commit ca56268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/tools/TranslateCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default class TranslateCommand extends Command implements HasEventListene

@GatewayEventListener("interactionCreate")
onInteractionCreate(interaction: Interaction<CacheType>) {
if (!interaction.isAutocomplete()) {
if (!interaction.isAutocomplete() || interaction.commandName !== this.name) {
return;
}

Expand Down

0 comments on commit ca56268

Please sign in to comment.