From d9fd2058d86665f46f1d4cf9b2f4e5a1882fb02f Mon Sep 17 00:00:00 2001 From: Kieran Date: Tue, 6 Sep 2022 11:26:17 +0100 Subject: [PATCH] Cleanup event embed --- events/guildScheduledEvent.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/events/guildScheduledEvent.js b/events/guildScheduledEvent.js index 2f6e804..f38ebb8 100644 --- a/events/guildScheduledEvent.js +++ b/events/guildScheduledEvent.js @@ -4,12 +4,12 @@ const client = require("../index"); client.on('guildScheduledEventCreate', async guildScheduledEvent =>{ const channel = client.channels.cache.get('973686987787751534') const embed = new MessageEmbed() + .setTitle(guildScheduledEvent.name) + .setDescription(guildScheduledEvent.description) .setColor('GREEN') .setFooter({text: `Created by ${guildScheduledEvent.creator.tag}`}) .setTimestamp() - .setTitle(guildScheduledEvent.name) .setImage(`https://cdn.discordapp.com/guild-events/${guildScheduledEvent.id}/${guildScheduledEvent.image}.png`) - .addField('Description', `${guildScheduledEvent.description}`) if(guildScheduledEvent.entityType !== 'EXTERNAL') {