Skip to content

Commit

Permalink
fix(GuildScheduledEvent): handle null recurrence_rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Eejit43 committed Oct 8, 2024
1 parent 8ab4124 commit a84961b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/discord.js/src/structures/GuildScheduledEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ class GuildScheduledEvent extends Base {
* @property {GuildScheduledEventRecurrenceRuleWeekday} day The day within the week to recur on
*/

if ('recurrence_rule' in data) {
if ('recurrence_rule' in data && data.recurrence_rule) {
/**
* The recurrence rule for this scheduled event
* @type {?GuildScheduledEventRecurrenceRule}
Expand Down

0 comments on commit a84961b

Please sign in to comment.