CreateChannel

@Serializable
data class CreateChannel(val name: String, val type: ChannelType? = null, val topic: String? = null, val bitrate: Int? = null, val voiceChannelUserLimit: Int? = null, val timeBetweenUserMessages: Int? = null, val position: Int? = null, val overwrites: List<Overwrite> = emptyList(), val categoryId: String? = null, val nsfw: Boolean = false)(source)

Constructors

Link copied to clipboard
constructor(name: String, type: ChannelType? = null, topic: String? = null, bitrate: Int? = null, voiceChannelUserLimit: Int? = null, timeBetweenUserMessages: Int? = null, position: Int? = null, overwrites: List<Overwrite> = emptyList(), categoryId: String? = null, nsfw: Boolean = false)

Properties

Link copied to clipboard
@SerialName(value = "bitrate")
val bitrate: Int? = null
Link copied to clipboard
@SerialName(value = "parent_id")
val categoryId: String? = null
Link copied to clipboard
@SerialName(value = "name")
val name: String
Link copied to clipboard
@SerialName(value = "nsfw")
val nsfw: Boolean = false
Link copied to clipboard
@SerialName(value = "permissions_overwrites")
val overwrites: List<Overwrite>
Link copied to clipboard
@SerialName(value = "position")
val position: Int? = null
Link copied to clipboard
@SerialName(value = "rate_limit_per_user")
val timeBetweenUserMessages: Int? = null
Link copied to clipboard
@SerialName(value = "topic")
val topic: String? = null
Link copied to clipboard
@SerialName(value = "type")
val type: ChannelType? = null
Link copied to clipboard
@SerialName(value = "user_limit")
val voiceChannelUserLimit: Int? = null