add discrim and bot info to whois

This commit is contained in:
Lea 2023-06-16 10:08:46 +02:00
parent be1d65a20f
commit aaa54579fc
Signed by: Lea
GPG key ID: 1BAFFE8347019C42

View file

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