From 1a3d9e21938c79f68844e2ca235a52d7de5c84cd Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Wed, 12 Apr 2023 14:08:56 +0500 Subject: [PATCH] oi --- commands/General/help.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/General/help.js b/commands/General/help.js index 095a6c31..756aae95 100644 --- a/commands/General/help.js +++ b/commands/General/help.js @@ -130,13 +130,13 @@ class Help extends BaseCommand { async autocompleteRun(client, interaction) { const command = interaction.options.getString("command"), commands = [...new Map(client.commands.map(v => [v.constructor.name, v])).values()], - results = commands.filter(c => c.name.includes(command)); + results = commands.filter(c => c.command.name.includes(command)); console.log(commands); return interaction.respond( results.slice(0, 25).map(command => ({ - name: command.name, - value: command.name, + name: command.command.name, + value: command.command.name, }), )); }