Class RoleProperties
Properties that are used to modify an Discord.IRole with the specified changes.
Assembly: Discord.Net.Core.dll​
View Source​
Declaration
public class RoleProperties
Properties​
Name​
Gets or sets the name of the role.
View Source​
Declaration
public Optional<string> Name { get; set; }
Permissions​
Gets or sets the role's Discord.GuildPermission.
View Source​
Declaration
public Optional<GuildPermissions> Permissions { get; set; }
Position​
Gets or sets the position of the role. This is 0-based!
View Source​
Declaration
public Optional<int> Position { get; set; }
Color​
Gets or sets the color of the role.
View Source​
Declaration
public Optional<Color> Color { get; set; }
Hoist​
Gets or sets whether or not this role should be displayed independently in the user list.
View Source​
Declaration
public Optional<bool> Hoist { get; set; }
Icon​
Gets or sets the icon of the role.
View Source​
Declaration
public Optional<Image> Icon { get; set; }
Mentionable​
Gets or sets whether or not this role can be mentioned.
View Source​
Declaration
public Optional<bool> Mentionable { get; set; }