add discrim and bot info to whois
This commit is contained in:
parent
be1d65a20f
commit
aaa54579fc
|
|
@ -45,9 +45,19 @@ export default {
|
|||
await t("commands.whois.data.id", message.author, {
|
||||
id: data.user.id,
|
||||
}),
|
||||
await t("commands.whois.data.displayname", message.author, {
|
||||
displayname: data.user.displayName || "*unset*",
|
||||
}),
|
||||
await t("commands.whois.data.username", message.author, {
|
||||
username: data.user.username,
|
||||
}),
|
||||
await t(
|
||||
"commands.whois.data.discriminator",
|
||||
message.author,
|
||||
{
|
||||
discriminator: "#" + data.user.discriminator,
|
||||
},
|
||||
),
|
||||
await t("commands.whois.data.created", message.author, {
|
||||
ts: Math.round(data.user.createdAt.getTime() / 1000),
|
||||
}),
|
||||
|
|
@ -171,6 +181,26 @@ export default {
|
|||
);
|
||||
}
|
||||
|
||||
if (data.user.bot?.owner) {
|
||||
embeds.push(
|
||||
embed(
|
||||
[
|
||||
await t(
|
||||
"commands.whois.data.bot_owner",
|
||||
message.author,
|
||||
{
|
||||
id: data.user.bot.owner,
|
||||
},
|
||||
),
|
||||
]
|
||||
.filter((i) => i)
|
||||
.join("\n"),
|
||||
await t("commands.whois.title_bot", message.author),
|
||||
"INFO",
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
return await message.reply({ embeds });
|
||||
},
|
||||
} as Command;
|
||||
|
|
|
|||
Loading…
Reference in a new issue