RoleBuilder class Null safety

Creates role

Inheritance

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
roleIcon AttachmentBuilder?
ole icon attachment
read / write
roleIconEmoji String?
Role icon emoji
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

build() RawApiMap
Returns built response for api
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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