delete

open suspend fun delete(reason: String? = null)(source)

Requests to delete a channel (or close it if this is a dm channel).

Parameters

reason

the reason showing up in the audit log

Throws

if something went wrong during the request.