mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-24 14:14:59 +05:00
fallback image for join/leave logs
This commit is contained in:
parent
96009bad69
commit
2469183919
2 changed files with 2 additions and 2 deletions
|
@ -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"))}`,
|
||||
});
|
||||
|
|
|
@ -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}**.`,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue