Class Role
Fluxer entity with client attached.
public class Role : Entity, IRole, ISnowflake, IMentionable
- Inheritance
-
objectRole
- Implements
- Derived
- Extension Methods
Properties
Color
The colour of the role as an integer.
public int Color { get; }
Property Value
CreatedAt
Object created at UTC date.
public DateTimeOffset CreatedAt { get; }
Property Value
GuildId
public ulong GuildId { get; }
Property Value
HoistPosition
The hoisted position of the role, otherwise use position.
public int? HoistPosition { get; }
Property Value
- int?
Id
Unique identifier (snowflake) for the object.
public ulong Id { get; }
Property Value
IsHoisted
Whether this role is displayed separately in the member list.
public bool IsHoisted { get; }
Property Value
IsMentionable
Whether this role can be mentioned by anyone.
public bool IsMentionable { get; }
Property Value
Mention
Formatted mention string for this object.
public string Mention { get; }
Property Value
Name
The name of the role.
public string Name { get; }
Property Value
Permissions
The role's permission bitfield. Sent as a quoted string by the gateway (e.g. "8933636165184").
public GuildPermissions Permissions { get; }
Property Value
Position
The position of the role in the role hierarchy.
public int Position { get; }
Property Value
UnicodeEmoji
The unicode emoji for this role.
public string? UnicodeEmoji { get; }
Property Value
Methods
Create(FluxerBaseClient, RoleJson, ulong)
Create a Role object from json.
public static Role Create(FluxerBaseClient client, RoleJson json, ulong guildId)
Parameters
clientFluxerBaseClientjsonRoleJsonguildIdulong