fallback image for join/leave logs

This commit is contained in:
Jonny_Bro (Nikita) 2024-09-20 22:48:40 +05:00
parent 96009bad69
commit 2469183919
Signed by: jonny_bro
GPG key ID: 3F1ECC04147E9BD8
2 changed files with 2 additions and 2 deletions

View file

@ -48,7 +48,7 @@ class GuildCreate extends BaseEvent {
const embed = client.embed({
author: {
name: guild.name,
iconURL: guild.iconURL(),
iconURL: guild.iconURL() || client.user.avatarURL(),
},
description: `Joined a new guild **${guild.name}**. It has **${users}** ${client.functions.getNoun(users, client.translate("misc:NOUNS:USERS:1"), client.translate("misc:NOUNS:USERS:2"), client.translate("misc:NOUNS:USERS:5"))} and **${bots}** ${client.functions.getNoun(bots, client.translate("misc:NOUNS:BOTS:1"), client.translate("misc:NOUNS:BOTS:2"), client.translate("misc:NOUNS:BOTS:5"))}`,
});

View file

@ -18,7 +18,7 @@ class GuildDelete extends BaseEvent {
const embed = client.embed({
author: {
name: guild.name,
iconURL: guild.iconURL(),
iconURL: guild.iconURL() || client.user.avatarURL(),
},
description: `Left from guild **${guild.name}**.`,
});