RoleBuilder class
Creates role
Constructors
- RoleBuilder(String name)
- Creates role
Properties
- color ↔ DiscordColor?
-
Integer representation of hexadecimal color code
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hoist ↔ bool?
-
If this role is pinned in the user listing
getter/setter pair
- mentionable ↔ bool?
-
Whether role is mentionable
getter/setter pair
- name ↔ String
-
Name of role
getter/setter pair
- permission ↔ PermissionsBuilder?
-
Permission object for role
getter/setter pair
- position ↔ int?
-
Position of role
getter/setter pair
- roleIcon ↔ AttachmentBuilder?
-
ole icon attachment
getter/setter pair
- roleIconEmoji ↔ String?
-
Role icon emoji
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
) → RawApiMap -
Returns built response for api
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited