deleteChannel

fun deleteChannel(channelId: String, requesterId: UUID, hasBypassPermission: Boolean = false): Result<Unit>(source)

Deletes a channel.

Return

Result indicating success or failure of the deletion.

Parameters

channelId

The ID of the channel to delete.

requesterId

The ID of the player requesting the deletion.

hasBypassPermission

Whether the requester has bypass permission.

Throws

if the channel does not exist.