toggle menu
Simple Robot 组件 | QQ Guild
4.1.2
common
switch theme
search in API
simbot-component-qq-guild-api
/
love.forte.simbot.qguild.event
/
Signal
/
Identify
Identify
@
Serializable
data
class
Identify
(
val
data
:
Signal.Identify.Data
)
:
Signal
<
Signal.Identify.Data
>
,
SendingSignal
(
source
)
2.鉴权连接
建立
websocket
连接之后,就需要进行鉴权了,需要发送一个
OpCode 2 Identify
消息
Members
Constructors
Identify
Link copied to clipboard
constructor
(
data
:
Signal.Identify.Data
)
Types
Data
Link copied to clipboard
@
Serializable
data
class
Data
(
val
token
:
String
,
val
intents
:
Intents
,
val
shard
:
Shard
,
val
properties
:
Map
<
String
,
String
>
)
Properties
data
Link copied to clipboard
@
SerialName
(
value
=
"d"
)
open
override
val
data
:
Signal.Identify.Data
Inherited properties
op
Link copied to clipboard
@
Serializable
(
with
=
Opcode.SerializerByCode::class
)
val
op
:
Opcode