Event OnPromoteGroupAdmin - KonataDev/Konata.Core GitHub Wiki
Promote or demote a member of the group.
OnGroupPromoteAdmin
Name | C Type | Description |
---|---|---|
Bot | uint32_t | Bot account |
Group | uint32_t | Group uin |
Member | uint32_t | Member uin |
Toggle | bool | Promote type[1] |
The return type is an uint32_t
.
Return Value | Description |
---|---|
IGNORE 0 |
Ignore this event. |
BLOCKED 1 |
Block this event to the next extension. |
[1] Promote type:
Promote type is a boolean
value in uint32_t
,
specifies the operation is promoted or demoted.
Type | Description |
---|---|
true | Promote member as an admin. |
false | Demote member. |