mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
?
This commit is contained in:
parent
2ab201e1c1
commit
45c7b93cf0
1 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ class Warns extends BaseCommand {
|
||||||
const embed = new EmbedBuilder()
|
const embed = new EmbedBuilder()
|
||||||
.setAuthor({
|
.setAuthor({
|
||||||
name: interaction.translate("moderation/warns:SANCTIONS_OF", {
|
name: interaction.translate("moderation/warns:SANCTIONS_OF", {
|
||||||
member: member.nickname || member.user.username,
|
member: member.user.getUsername(),
|
||||||
}),
|
}),
|
||||||
iconURL: member.displayAvatarURL({
|
iconURL: member.displayAvatarURL({
|
||||||
extension: "png",
|
extension: "png",
|
||||||
|
@ -68,7 +68,7 @@ class Warns extends BaseCommand {
|
||||||
|
|
||||||
if (memberData.sanctions.length === 0) {
|
if (memberData.sanctions.length === 0) {
|
||||||
embed.setDescription(interaction.translate("moderation/warns:NO_SANCTIONS", {
|
embed.setDescription(interaction.translate("moderation/warns:NO_SANCTIONS", {
|
||||||
member: member.nickname || member.user.username,
|
member: member.user.getUsername(),
|
||||||
}));
|
}));
|
||||||
return interaction.reply({
|
return interaction.reply({
|
||||||
embeds: [embed],
|
embeds: [embed],
|
||||||
|
|
Loading…
Reference in a new issue