Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Event API GroupPromoteAdmin

TheSnowfield edited this page Jul 24, 2021 · 1 revision

Promote or demote a member of the group.

Definition

GroupPromoteAdmin

Parameters

Name C Type Description
Bot uint32_t Bot account
Group uint32_t Group uin
Member uint32_t Member uin
Toggle bool Promote type[1]

Return

The return type is an uint32_t.

Return Value Description
SUCCESS
0
Operation successfully.
FAILED
-1
Operation failed.
DENIED
-2
Lack the permission.

Remarks

[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.