Skip to main content

GroupRoleInfo

A class in Alta.Api.DataTransferModels, Alta.Api.DataTransferModels.Models.Responses.

A role in a group: id, name, colour, permissions and allowed console commands. Constants give the fixed ids of the built-in roles.

Constructors​

MemberWhat it is
GroupRoleInfo()Creates a GroupRoleInfo with default values.

Fields​

MemberWhat it is
const int BannedRoleIdentifierRole id for banned members (0).
const int DefaultModeratorIdentifierRole id of the default moderator role (2).
const int DefaultRoleIdentifierRole id new members get (1).
const int OwnerRoleIdentifierRole id of the group owner (7).

Properties​

MemberWhat it is
string[] AllowedCommands { get; set; }Console commands members with this role may run.
string Color { get; set; }Role colour as a string.
int Identifier { get; set; }The role's id within the group.
string Name { get; set; }Role name.
GroupPermissions[] Permissions { get; set; }Group permissions the role grants.

Used in​

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