From 83212f419be9b4aee015d7a9bee97f06308443ab Mon Sep 17 00:00:00 2001 From: Kieran Date: Thu, 15 Sep 2022 21:14:56 +0100 Subject: [PATCH] Fix event crash? --- src/events/guildScheduledEvent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/guildScheduledEvent.js b/src/events/guildScheduledEvent.js index 228a6b5..fc58d38 100644 --- a/src/events/guildScheduledEvent.js +++ b/src/events/guildScheduledEvent.js @@ -7,7 +7,7 @@ client.on('guildScheduledEventCreate', async (guildScheduledEvent) => { .setTitle(guildScheduledEvent.name) .setDescription(guildScheduledEvent.description) .setColor('GREEN'); - if (guildScheduledEvent.user.tag !== null) { + if (guildScheduledEvent.creator.tag) { embed.setFooter({ text: `Created by ${guildScheduledEvent.creator.tag}` }); } embed.setTimestamp();