asChannel

open suspend override fun asChannel(): TopGuildMessageChannel(source)

Requests to get the this behavior as a TopGuildMessageChannel.

Throws

if something went wrong during the request.

if the channel wasn't present.

if the channel isn't a guild message channel.