Announces

data class Announces(val guildId: String, val channelId: String, val messageId: String, val announcesType: UInt, val recommendChannels: List<RecommendChannel> = emptyList())(source)

公告对象

Constructors

Link copied to clipboard
constructor(guildId: String, channelId: String, messageId: String, announcesType: UInt, recommendChannels: List<RecommendChannel> = emptyList())

Properties

Link copied to clipboard
@SerialName(value = "announces_type")
@get:JvmName(name = "getAnnouncesType")
val announcesType: UInt

公告类别 0:成员公告 1:欢迎公告,默认成员公告

Link copied to clipboard

获取 announcesType 的结果并从 Unsigned integer type 转为Java可用的 Int

Link copied to clipboard
@SerialName(value = "channel_id")
val channelId: String

子频道 id

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

频道 id

Link copied to clipboard
@SerialName(value = "message_id")
val messageId: String

消息 id

Link copied to clipboard
@SerialName(value = "recommend_channels")
val recommendChannels: List<RecommendChannel>