createTextChannel

inline suspend fun GuildBehavior.createTextChannel(name: String, builder: TextChannelCreateBuilder.() -> Unit = {}): TextChannel(source)

Requests to create a new text channel.

Return

The created TextChannel.

Throws

if something went wrong during the request.