File tree 2 files changed +21
-0
lines changed
2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,16 @@ class StageInstance extends Base {
72
72
} else {
73
73
this . discoverableDisabled ??= null ;
74
74
}
75
+
76
+ if ( 'guild_scheduled_event_id' in data ) {
77
+ /**
78
+ * The associated guild scheduled event id of this stage instance
79
+ * @type {?Snowflake }
80
+ */
81
+ this . guildScheduledEventId = data . guild_scheduled_event_id ;
82
+ } else {
83
+ this . guildScheduledEventId ??= null ;
84
+ }
75
85
}
76
86
77
87
/**
@@ -83,6 +93,15 @@ class StageInstance extends Base {
83
93
return this . client . channels . resolve ( this . channelId ) ;
84
94
}
85
95
96
+ /**
97
+ * The associated guild scheduled event of this stage instance
98
+ * @type {?GuildScheduledEvent }
99
+ * @readonly
100
+ */
101
+ get guildScheduledEvent ( ) {
102
+ return this . guild ?. scheduledEvents . resolve ( this . guildScheduledEventId ) ?? null ;
103
+ }
104
+
86
105
/**
87
106
* Whether or not the stage instance has been deleted
88
107
* @type {boolean }
Original file line number Diff line number Diff line change @@ -2246,8 +2246,10 @@ export class StageInstance extends Base {
2246
2246
public topic : string ;
2247
2247
public privacyLevel : PrivacyLevel ;
2248
2248
public discoverableDisabled : boolean | null ;
2249
+ public guildScheduledEventId ?: Snowflake ;
2249
2250
public readonly channel : StageChannel | null ;
2250
2251
public readonly guild : Guild | null ;
2252
+ public get guildScheduledEvent ( ) : GuildScheduledEvent | null ;
2251
2253
public edit ( options : StageInstanceEditOptions ) : Promise < StageInstance > ;
2252
2254
public delete ( ) : Promise < StageInstance > ;
2253
2255
public setTopic ( topic : string ) : Promise < StageInstance > ;
You can’t perform that action at this time.
0 commit comments