mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-21 20:54:58 +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({
|
const embed = client.embed({
|
||||||
author: {
|
author: {
|
||||||
name: guild.name,
|
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"))}`,
|
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({
|
const embed = client.embed({
|
||||||
author: {
|
author: {
|
||||||
name: guild.name,
|
name: guild.name,
|
||||||
iconURL: guild.iconURL(),
|
iconURL: guild.iconURL() || client.user.avatarURL(),
|
||||||
},
|
},
|
||||||
description: `Left from guild **${guild.name}**.`,
|
description: `Left from guild **${guild.name}**.`,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue