diff --git a/src/events/client/GuildDelete.ts b/src/events/client/GuildDelete.ts index 6f27304a4..b5c668a99 100644 --- a/src/events/client/GuildDelete.ts +++ b/src/events/client/GuildDelete.ts @@ -24,12 +24,13 @@ export default class GuildDelete extends Event { } const embed = new EmbedBuilder() .setColor(this.client.config.color.red) - .setAuthor({ name: guild.name, iconURL: guild.iconURL({ extension: 'jpeg' }) }) + .setAuthor({ name: guild.name || 'Unknown Guild', iconURL: guild.iconURL({ extension: 'jpeg' }) }) + .setDescription(`**${guild.name}** has been removed from my guilds!`) .setThumbnail(guild.iconURL({ extension: 'jpeg' })) .addFields( { name: 'Owner', value: owner.user.tag, inline: true }, - { name: 'Members', value: guild.memberCount.toString(), inline: true }, + { name: 'Members', value: guild.memberCount ? guild.memberCount.toString() : 'Unknown', inline: true }, { name: 'Created At', value: ``,