mirror of
https://github.com/discordjs/discord.js.git
synced 2026-09-17 08:47:27 +00:00
fix(StageInstanceManager#create): correctly resolve guildScheduledEvent (#11540)
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user