RoleBuilder class

Creates role

Implemented types

Constructors

RoleBuilder(String name)
Creates role

Properties

color DiscordColor
Integer representation of hexadecimal color code
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
hoist bool
If this role is pinned in the user listing
read / write
mentionable bool
Whether role is mentionable
read / write
name String
Name of role
read / write
permission PermissionsBuilder
Permission object for role
read / write
position int
Position of role
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited