Fix event crash?

imgbot
Kieran 2022-09-15 21:14:56 +01:00
parent 49239fae01
commit 83212f419b
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ client.on('guildScheduledEventCreate', async (guildScheduledEvent) => {
.setTitle(guildScheduledEvent.name) .setTitle(guildScheduledEvent.name)
.setDescription(guildScheduledEvent.description) .setDescription(guildScheduledEvent.description)
.setColor('GREEN'); .setColor('GREEN');
if (guildScheduledEvent.user.tag !== null) { if (guildScheduledEvent.creator.tag) {
embed.setFooter({ text: `Created by ${guildScheduledEvent.creator.tag}` }); embed.setFooter({ text: `Created by ${guildScheduledEvent.creator.tag}` });
} }
embed.setTimestamp(); embed.setTimestamp();