EventChannel

class EventChannel @EventModelConstructor constructor(val id: String, val guildId: String, val name: String, val type: ChannelType, val subType: ChannelSubType, val ownerId: String, val opUserId: String)(source)

子频道事件 中接收到的 Channel 信息。

内容

在 Channel 的部分字段基础上,增加 op_user_id 代表操作人。

Note: EventChannel 暂不实现 Channel,因为这个 "部分" 还不好界定。

Constructors

Link copied to clipboard
constructor(id: String, guildId: String, name: String, type: ChannelType, subType: ChannelSubType, ownerId: String, opUserId: String)

Properties

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

频道 id

Link copied to clipboard
val id: String

子频道 id

Link copied to clipboard

子频道名

Link copied to clipboard
@SerialName(value = "op_user_id")
val opUserId: String

操作人

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

创建人 id

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

子频道子类型 ChannelSubType

Link copied to clipboard

子频道类型 ChannelType

Functions

Link copied to clipboard
operator fun component1(): String
Link copied to clipboard
operator fun component2(): String
Link copied to clipboard
operator fun component3(): String
Link copied to clipboard
operator fun component4(): ChannelType
Link copied to clipboard
operator fun component5(): ChannelSubType
Link copied to clipboard
operator fun component6(): String
Link copied to clipboard
operator fun component7(): String
Link copied to clipboard
fun copy(id: String = this.id, guildId: String = this.guildId, name: String = this.name, type: ChannelType = this.type, subType: ChannelSubType = this.subType, ownerId: String = this.ownerId, opUserId: String = this.opUserId): EventChannel
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String