fix(StageInstanceManager#create): correctly resolve guildScheduledEvent (#11540)

This commit is contained in:
Almeida
2026-07-14 20:42:44 +01:00
committed by Jiralite
parent 221680dbd1
commit 0aabb6cde2
@@ -63,7 +63,7 @@ class StageInstanceManager extends CachedManager {
if (typeof options !== 'object') throw new DiscordjsTypeError(ErrorCodes.InvalidType, 'options', 'object', true);
const { guildScheduledEvent, topic, privacyLevel, sendStartNotification } = options;
const guildScheduledEventId = guildScheduledEvent && this.resolveId(guildScheduledEvent);
const guildScheduledEventId = guildScheduledEvent && this.guild.scheduledEvents.resolveId(guildScheduledEvent);
const data = await this.client.rest.post(Routes.stageInstances(), {
body: {