From 8f56fd9b9233c3ac397e1c24c5a01ab22776f59b Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 26 May 2024 01:23:33 -0400 Subject: [PATCH] Updated default ping command with AC defaults --- discordBot/commands/ping.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discordBot/commands/ping.mjs b/discordBot/commands/ping.mjs index 4ab5e80..92e9978 100644 --- a/discordBot/commands/ping.mjs +++ b/discordBot/commands/ping.mjs @@ -19,10 +19,10 @@ export const deferInitialReply = false; // If we the initial reply in discord sh /* export async function autocomplete(nodeIo, interaction) { const focusedValue = interaction.options.getFocused(); - const choices = []; + const choices = []; // The array to be filled with the autocorrect values const filtered = choices.filter(choice => choice.name.startsWith(focusedValue)); log.INFO(focusedValue, choices, filtered); - await interaction.respond(filtered); + await interaction.respond(filtered.map(choice => ({name: choice.name, value: choice.name}))); } */