change get_members tag to nickname
This commit is contained in:
parent
d6351fbc30
commit
5f3521f452
|
@ -35,13 +35,13 @@ export default {
|
||||||
|
|
||||||
let text = "";
|
let text = "";
|
||||||
for (const member of member_data) {
|
for (const member of member_data) {
|
||||||
let discord_tag: string;
|
let nickname: string;
|
||||||
try {
|
try {
|
||||||
discord_tag = (await interaction.client.users.fetch(member[0])).tag;
|
nickname = interaction.guild.members.cache.get(discord_id).nickname;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
discord_tag = `Deleted User#0000`;
|
nickname = `Deleted User`;
|
||||||
}
|
}
|
||||||
text += discord_tag;
|
text += nickname;
|
||||||
text += `(${discord_id})`;
|
text += `(${discord_id})`;
|
||||||
|
|
||||||
text += " : ";
|
text += " : ";
|
||||||
|
|
Loading…
Reference in a new issue