deleteStageInstance method

Future<void> deleteStageInstance(
  1. Snowflake channelId,
  2. {String? auditLogReason}
)

Delete the stage instance for a channel.

Implementation

Future<void> deleteStageInstance(Snowflake channelId, {String? auditLogReason}) async {
  final route = HttpRoute()..stageInstances(id: channelId.toString());
  final request = BasicRequest(route, method: 'DELETE', auditLogReason: auditLogReason);

  await client.httpHandler.executeSafe(request);

  stageInstanceCache.remove(channelId);
}