Guild to create role for
Instance Method
createRole(for:with:then:)
Creates a guild role
Declaration
func createRole(for guildId: Snowflake, with options: [String : Any], then completion: ((Role?, RequestError?) -> Void)? = nil)
Parameters
guildId
-
options
-
Preset options to configure role with
Option Params
name: The name of the role
permissions: The bitwise number to set role with
color: Integer value of RGB color
hoist: Whether or not this role is hoisted on the member list
mentionable: Whether or not this role is mentionable in chat