fix search discord name to id
This commit is contained in:
parent
51ab39e0ba
commit
2c4556906f
|
@ -76,7 +76,7 @@ export default {
|
||||||
let text = "";
|
let text = "";
|
||||||
text +=
|
text +=
|
||||||
(await interaction.guild.members.fetch(discord_id)).nickname ||
|
(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 += ": ";
|
text += ": ";
|
||||||
for (const user of the_data.docs) {
|
for (const user of the_data.docs) {
|
||||||
const minecraft_uuid = user.data()["minecraft_uuid"];
|
const minecraft_uuid = user.data()["minecraft_uuid"];
|
||||||
|
|
Loading…
Reference in a new issue