Skip to content

Commit

Permalink
Update GuildDelete.ts
Browse files Browse the repository at this point in the history
Signed-off-by: LucasB25 <[email protected]>
  • Loading branch information
LucasB25 authored Feb 11, 2024
1 parent a6c5b0e commit 806c210
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/events/client/GuildDelete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: `<t:${Math.floor(guild.createdTimestamp / 1000)}:F>`,
Expand Down

0 comments on commit 806c210

Please sign in to comment.