Cleanup event embed

imgbot
Kieran 2022-09-06 11:26:17 +01:00
parent 45c2216f75
commit d9fd2058d8
1 changed files with 2 additions and 2 deletions

View File

@ -4,12 +4,12 @@ const client = require("../index");
client.on('guildScheduledEventCreate', async guildScheduledEvent =>{ client.on('guildScheduledEventCreate', async guildScheduledEvent =>{
const channel = client.channels.cache.get('973686987787751534') const channel = client.channels.cache.get('973686987787751534')
const embed = new MessageEmbed() const embed = new MessageEmbed()
.setTitle(guildScheduledEvent.name)
.setDescription(guildScheduledEvent.description)
.setColor('GREEN') .setColor('GREEN')
.setFooter({text: `Created by ${guildScheduledEvent.creator.tag}`}) .setFooter({text: `Created by ${guildScheduledEvent.creator.tag}`})
.setTimestamp() .setTimestamp()
.setTitle(guildScheduledEvent.name)
.setImage(`https://cdn.discordapp.com/guild-events/${guildScheduledEvent.id}/${guildScheduledEvent.image}.png`) .setImage(`https://cdn.discordapp.com/guild-events/${guildScheduledEvent.id}/${guildScheduledEvent.image}.png`)
.addField('Description', `${guildScheduledEvent.description}`)
if(guildScheduledEvent.entityType !== 'EXTERNAL') if(guildScheduledEvent.entityType !== 'EXTERNAL')
{ {