fix search discord name to id

This commit is contained in:
kdh8219 2023-05-05 23:13:34 +09:00
parent 51ab39e0ba
commit 2c4556906f
No known key found for this signature in database
GPG key ID: 2B5B609E12BB4C19

View file

@ -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"];