Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mirdukkkkk committed Dec 4, 2023
2 parents 9c76aad + d229080 commit 6c1d9a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/BaninfoCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ class BaninfoCommand extends PixelCommand {
const ban = await manager.find({ userID: user.id });
if(!ban)
return msg.edit({ content: 'Указанный вами игрок не находится в бане' });
const moderator = message.client.users.cache.get(args[0]) || await message.client.users.fetch(ban.moderatorID).catch(() => {});
const moderator = message.client.users.cache.get(ban.moderatorID) || await message.client.users.fetch(ban.moderatorID).catch(() => {});

return msg.edit({
content: null,
embeds: [
new EmbedBuilder()
.setTitle(`:information_source: Информация о ${user.id == message.author.id ? 'вашем бане' : 'бане другого игрока'}`)
.setTitle(`:information_source: Информация о ${user.id === message.author.id ? 'вашем бане' : 'бане другого игрока'}`)
.setColor(0x5865F2)
.setDescription(
`> Модератор: \`${moderator?.globalName || moderator?.username || ban.moderatorID} ${moderator ? `(${ban.moderatorID})` : ''}\`\n` +
Expand Down

0 comments on commit 6c1d9a4

Please sign in to comment.