asChannel

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

Requests to get this behavior as a TopGuildChannel.

Throws

if something went wrong during the request.

if the channel wasn't present.

if the channel isn't a guild channel.