toggle menu
onebot-v12-lib
jvm
switch theme
search in API
onebot-v12-lib
/
cn.qfys521.onebot.v12.lib.model
/
OneBotEvent
/
PrivateMessageEvent
Private
Message
Event
@
Serializable
data
class
PrivateMessageEvent
(
val
id
:
String
,
val
time
:
Long
,
val
self
:
BotSelf
,
val
messageId
:
String
,
val
userId
:
String
,
val
message
:
List
<
Segment
>
,
val
altMessage
:
String
?
=
null
,
val
subType
:
String
=
""
,
val
type
:
String
=
"message"
,
val
detailType
:
String
=
"private"
)
:
OneBotEvent
Members
Constructors
Private
Message
Event
Link copied to clipboard
constructor
(
id
:
String
,
time
:
Long
,
self
:
BotSelf
,
messageId
:
String
,
userId
:
String
,
message
:
List
<
Segment
>
,
altMessage
:
String
?
=
null
,
subType
:
String
=
""
,
type
:
String
=
"message"
,
detailType
:
String
=
"private"
)
Properties
alt
Message
Link copied to clipboard
@
SerialName
(
value
=
"alt_message"
)
val
altMessage
:
String
?
=
null
detail
Type
Link copied to clipboard
@
SerialName
(
value
=
"detail_type"
)
open
override
val
detailType
:
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