Fix event crash?
parent
49239fae01
commit
83212f419b
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue