SimpleChannel

data class SimpleChannel(val id: String, val guildId: String, val name: String, val type: ChannelType, val subType: ChannelSubType, val position: Int, val parentId: String, val ownerId: String, val privateType: PrivateType? = null, val speakPermission: SpeakPermission? = null, val applicationId: String? = null, val permissions: Permissions? = null) : Channel(source)

Channel 的基础实现。

See also

Constructors

Link copied to clipboard
constructor(id: String, guildId: String, name: String, type: ChannelType, subType: ChannelSubType, position: Int, parentId: String, ownerId: String, privateType: PrivateType? = null, speakPermission: SpeakPermission? = null, applicationId: String? = null, permissions: Permissions? = null)

Properties

Link copied to clipboard
@SerialName(value = "application_id")
open override val applicationId: String? = null

用于标识应用子频道应用类型,仅应用子频道时会使用该字段,具体定义请参考 应用子频道的应用类型

Link copied to clipboard
@SerialName(value = "guild_id")
open override val guildId: String

频道 id

Link copied to clipboard
open override val id: String

子频道 id

Link copied to clipboard
open override val name: String

子频道名

Link copied to clipboard
@SerialName(value = "owner_id")
open override val ownerId: String

创建人 id

Link copied to clipboard
@SerialName(value = "parent_id")
open override val parentId: String

所属分组 id,仅对子频道有效,对 子频道分组(ChannelType=4) 无效

Link copied to clipboard
open override val permissions: Permissions? = null

用户拥有的子频道权限 Permissions

Link copied to clipboard
open override val position: Int

排序值,具体请参考 有关 position 的说明

Link copied to clipboard
@SerialName(value = "private_type")
open override val privateType: PrivateType? = null

子频道私密类型 PrivateType

Link copied to clipboard
@SerialName(value = "speak_permission")
open override val speakPermission: SpeakPermission? = null

子频道发言权限 SpeakPermission

Link copied to clipboard
@SerialName(value = "sub_type")
open override val subType: ChannelSubType

子频道子类型 ChannelSubType

Link copied to clipboard
open override val type: ChannelType

子频道类型 ChannelType

Inherited properties

Link copied to clipboard

api for Java.

Inherited functions

Link copied to clipboard
open operator override fun compareTo(other: Channel): Int