Simple Robot
Toggle table of contents
5.0.0-Alpha2
common
Target filter
common
Switch theme
Search in API
Skip to content
Simple Robot
simbot-component-qq-api
/
love.forte.simbot.qguild.api.role
/
GuildRoleCreated
Guild
Role
Created
@
ApiModel
@
Serializable
class
GuildRoleCreated
@
ApiModelConstructor
constructor
(
val
roleId
:
String
,
val
role
:
Role
?
=
null
)
(
source
)
CreateGuildRoleApi
创建成功后的返回值
Members
Constructors
Guild
Role
Created
Link copied to clipboard
@
ApiModelConstructor
constructor
(
roleId
:
String
,
role
:
Role
?
=
null
)
Properties
role
Link copied to clipboard
val
role
:
Role
?
所创建的频道身份组对象。与文档描述不符,实际可能为 null。
role
Id
Link copied to clipboard
@
SerialName
(
value
=
"role_id"
)
val
roleId
:
String
身份组 ID
Functions
component1
Link copied to clipboard
operator
fun
component1
(
)
:
String
component2
Link copied to clipboard
operator
fun
component2
(
)
:
Role
?
copy
Link copied to clipboard
fun
copy
(
roleId
:
String
=
this.roleId
,
role
:
Role
?
=
this.role
)
:
GuildRoleCreated
equals
Link copied to clipboard
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
hash
Code
Link copied to clipboard
open
override
fun
hashCode
(
)
:
Int
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String