async function deleteStageInstance(
  channelId,
) {
  const channel = await cacheHandlers.get("channels", channelId);
  if (channel) {
    if (channel.type !== ChannelTypes.GuildStageVoice) {
      throw new Error(Errors.CHANNEL_NOT_STAGE_VOICE);
    }
    await requireBotChannelPermissions(channel, [
      "MUTE_MEMBERS",
      "MANAGE_CHANNELS",
      "MOVE_MEMBERS",
    ]);
  }
  return await rest.runMethod("delete", endpoints.STAGE_INSTANCE(channelId));
}
/** Deletes the Stage instance. Requires the user to be a moderator of the Stage channel. */
Deletes the Stage instance. Requires the user to be a moderator of the Stage channel.
Deletes the Stage instance . Requires the user to be a moderator of the Stage channel .
async function deleteStageInstance(
  channelId,
) {
  const channel = await cacheHandlers.get("channels", channelId);
  if (channel) {
    if (channel.type !== ChannelTypes.GuildStageVoice) {
      throw new Error(Errors.CHANNEL_NOT_STAGE_VOICE);
    }
    await requireBotChannelPermissions(channel, [
      "MUTE_MEMBERS",
      "MANAGE_CHANNELS",
      "MOVE_MEMBERS",
    ]);
  }
  return await rest.runMethod("delete", endpoints.STAGE_INSTANCE(channelId));
}
async function deleteStageInstance ( channelId , ) { const channel = await cacheHandlers . get ( "channels" , channelId ) ; if ( channel ) { if ( channel . type !== ChannelTypes . GuildStageVoice ) { throw new Error ( Errors . CHANNEL_NOT_STAGE_VOICE ) ; } await requireBotChannelPermissions ( channel , [ "MUTE_MEMBERS" , "MANAGE_CHANNELS" , "MOVE_MEMBERS" , ] ) ; } return await rest . runMethod ( "delete" , endpoints . STAGE_INSTANCE ( channelId ) ) ; }
Deletes the Stage instance.
Deletes the Stage instance .