RoleBuilder class Null safety

Creates role

Inheritance

Constructors

RoleBuilder(String name, {DiscordColor? color, bool? hoist, Snowflake? id, bool? mentionable, PermissionsBuilder? permission, int? position, AttachmentBuilder? roleIcon, String? roleIconEmoji})
Creates role

Properties

color DiscordColor?
Integer representation of hexadecimal color code
read / write
hashCode int
The hash code for this object.
read-onlyinherited
hoist bool?
If this role is pinned in the user listing
read / write
id Snowflake?
When using the roles parameter in GuildBuilder, this field is required. It is a Snowflake placeholder for the role and will be replaced by the API consumption.
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?
Role icon attachment
read / write
roleIconEmoji String?
Role icon emoji
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

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