Cleanup event embed
parent
45c2216f75
commit
d9fd2058d8
|
@ -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')
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue