leave

open suspend fun leave()(source)

Leaves the current thread if the bot has already joined. Requires the thread is not locked. or current bot has Manage Threads permission

Throws

if something went wrong during the request.