From d882c886fb31905d298455bcb226e94fc1f86c3d Mon Sep 17 00:00:00 2001 From: kdh8219 <65698239+kdh8219@users.noreply.github.com> Date: Fri, 5 May 2023 19:52:25 +0900 Subject: [PATCH] fix search discord id error --- 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 c2cdbbe..73e203f 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 || - interaction.user.username; + (await interaction.client.users.fetch(discord_id)).id; text += ": "; for (const user of the_data.docs) { const minecraft_uuid = user.data()["minecraft_uuid"];