RoleBuilder constructor

RoleBuilder(
  1. String name, {
  2. DiscordColor? color,
  3. bool? hoist,
  4. Snowflake? id,
  5. bool? mentionable,
  6. PermissionsBuilder? permission,
  7. int? position,
  8. AttachmentBuilder? roleIcon,
  9. String? roleIconEmoji,
})

Creates role

Implementation

RoleBuilder(
  this.name, {
  this.color,
  this.hoist,
  this.id,
  this.mentionable,
  this.permission,
  this.position,
  this.roleIcon,
  this.roleIconEmoji,
});