diff --git a/src/managers/StageInstanceManager.js b/src/managers/StageInstanceManager.js index 478f26f5c1f5..cea367099d2c 100644 --- a/src/managers/StageInstanceManager.js +++ b/src/managers/StageInstanceManager.js @@ -31,6 +31,7 @@ class StageInstanceManager extends CachedManager { * @typedef {Object} StageInstanceCreateOptions * @property {string} topic The topic of the stage instance * @property {PrivacyLevel|number} [privacyLevel] The privacy level of the stage instance + * @property {boolean} [sendStartNotification] Whether to notify `@everyone` that the stage instance has started */ /** @@ -58,7 +59,7 @@ class StageInstanceManager extends CachedManager { const channelId = this.guild.channels.resolveId(channel); if (!channelId) throw new Error('STAGE_CHANNEL_RESOLVE'); if (typeof options !== 'object') throw new TypeError('INVALID_TYPE', 'options', 'object', true); - let { topic, privacyLevel } = options; + let { topic, privacyLevel, sendStartNotification } = options; privacyLevel &&= typeof privacyLevel === 'number' ? privacyLevel : PrivacyLevels[privacyLevel]; @@ -67,6 +68,7 @@ class StageInstanceManager extends CachedManager { channel_id: channelId, topic, privacy_level: privacyLevel, + send_start_notification: sendStartNotification, }, }); diff --git a/typings/index.d.ts b/typings/index.d.ts index 17e2d4c4c004..b3d013ecef17 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -4466,6 +4466,7 @@ export interface CreateRoleOptions extends RoleData { export interface StageInstanceCreateOptions { topic: string; privacyLevel?: PrivacyLevel | number; + sendStartNotification?: boolean; } export interface CrosspostedChannel {