Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var color: Color?

Color of the role, no color by default.

Link copied to clipboard

Whether the role should be displayed separately in the sidebar, false by default.

Link copied to clipboard
var icon: Image?

The role's icon image (if the guild has the RoleIcons feature), null by default.

Link copied to clipboard

Whether the role should be mentionable, false by default.

Link copied to clipboard
var name: String?

Name of the role, "new role" by default.

Link copied to clipboard

Permissions for the role, @everyone permissions in the guild by default.

Link copied to clipboard
open override var reason: String?

The reason for this request, this will be displayed in the audit log.

Link copied to clipboard

The role's unicode emoji as a standard emoji (if the guild has the RoleIcons feature), null by default.

Functions

Link copied to clipboard
open override fun toRequest(): GuildRoleCreateRequest