toggle menu
onebot-v12-lib
jvm
switch theme
search in API
onebot-v12-lib
/
cn.qfys521.onebot.v12.lib.model
/
OneBotEvent
/
ChannelMessageEvent
Channel
Message
Event
@
Serializable
data
class
ChannelMessageEvent
(
val
id
:
String
,
val
time
:
Long
,
val
self
:
BotSelf
,
val
messageId
:
String
,
val
userId
:
String
,
val
guildId
:
String
,
val
channelId
:
String
,
val
message
:
List
<
Segment
>
,
val
altMessage
:
String
?
=
null
,
val
subType
:
String
=
""
,
val
type
:
String
=
"message"
,
val
detailType
:
String
=
"channel"
)
:
OneBotEvent
Members
Constructors
Channel
Message
Event
Link copied to clipboard
constructor
(
id
:
String
,
time
:
Long
,
self
:
BotSelf
,
messageId
:
String
,
userId
:
String
,
guildId
:
String
,
channelId
:
String
,
message
:
List
<
Segment
>
,
altMessage
:
String
?
=
null
,
subType
:
String
=
""
,
type
:
String
=
"message"
,
detailType
:
String
=
"channel"
)
Properties
alt
Message
Link copied to clipboard
@
SerialName
(
value
=
"alt_message"
)
val
altMessage
:
String
?
=
null
channel
Id
Link copied to clipboard
@
SerialName
(
value
=
"channel_id"
)
val
channelId
:
String
detail
Type
Link copied to clipboard
@
SerialName
(
value
=
"detail_type"
)
open
override
val
detailType
:
String
guild
Id
Link copied to clipboard
@
SerialName
(
value
=
"guild_id"
)
val
guildId
:
String
id
Link copied to clipboard
open
override
val
id
:
String
message
Link copied to clipboard
val
message
:
List
<
Segment
>
message
Id
Link copied to clipboard
@
SerialName
(
value
=
"message_id"
)
val
messageId
:
String
self
Link copied to clipboard
open
override
val
self
:
BotSelf
sub
Type
Link copied to clipboard
@
SerialName
(
value
=
"sub_type"
)
open
override
val
subType
:
String
time
Link copied to clipboard
open
override
val
time
:
Long
type
Link copied to clipboard
open
override
val
type
:
String
user
Id
Link copied to clipboard
@
SerialName
(
value
=
"user_id"
)
val
userId
:
String