Skip to main content

GroupMember

A class in Alta.Api.Client, Alta.Api.Client.HighLevel.

One member of a joined group in Alta's web API, with calls to kick, ban or change their role. Those services are gone, so the calls fail.

Constructors​

1 private and internal constructor
MemberWhat it is
internal GroupMember(GroupMemberInfo memberInfo, LowLevelApiClient api, JoinedGroupManager groupManager)Creates a GroupMember from memberInfo, api and groupManager.

Fields​

2 private and internal fields
MemberWhat it is
private readonly LowLevelApiClient apiLow level client the calls go through.
private readonly JoinedGroupManager groupsManagerThe joined group's manager, used for its ban list.

Properties​

MemberWhat it is
GroupMemberInfo MemberInfo { get; }The member's details from the API: user and group ids, username, bot flag and permissions.

Methods​

MemberWhat it is
Task Ban()Adds the member to the group's ban list through the group manager.
Task ChangeRole(int newRole)Asks the API to give the member a new role in the group.
Task Kick()Asks the API to remove the member from the group.

Used in​

Members of other types that take, return or hold a GroupMember: