Updated autocomplete event handler

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2023-12-11 13:41:49 +01:00
parent ed8cc905bf
commit 325f4a9c0e
2 changed files with 13 additions and 2 deletions

View File

@@ -6,7 +6,6 @@ module.exports = {
/** @param { import("discord.js").AutocompleteInteraction } interaction */
async execute(interaction) {
if (!interaction.isAutocomplete()) return
if (interaction.commandName !== "unban") return
const focusedOption = interaction.options.getFocused(true)
if (focusedOption.name !== "user") return