From 2c4556906f5072ad1d106bfd55d23f305ff432b2 Mon Sep 17 00:00:00 2001 From: kdh8219 <65698239+kdh8219@users.noreply.github.com> Date: Fri, 5 May 2023 23:13:34 +0900 Subject: [PATCH] fix search discord name to id --- src/command/commands/search.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command/commands/search.ts b/src/command/commands/search.ts index 73e203f..90b8e01 100755 --- a/src/command/commands/search.ts +++ b/src/command/commands/search.ts @@ -76,7 +76,7 @@ export default { let text = ""; text += (await interaction.guild.members.fetch(discord_id)).nickname || - (await interaction.client.users.fetch(discord_id)).id; + (await interaction.client.users.fetch(discord_id)).username; text += ": "; for (const user of the_data.docs) { const minecraft_uuid = user.data()["minecraft_uuid"];