diff --git a/packages/discord.js/src/structures/GuildScheduledEvent.js b/packages/discord.js/src/structures/GuildScheduledEvent.js index d6ee734af..70f25bf4b 100644 --- a/packages/discord.js/src/structures/GuildScheduledEvent.js +++ b/packages/discord.js/src/structures/GuildScheduledEvent.js @@ -153,11 +153,15 @@ class GuildScheduledEvent extends Base { this.entityMetadata ??= null; } - /** - * The cover image hash for this scheduled event - * @type {?string} - */ - this.image = data.image ?? null; + if ('image' in data) { + /** + * The cover image hash for this scheduled event + * @type {?string} + */ + this.image = data.image; + } else { + this.image ??= null; + } } /**