Instance Method

createRole(with:then:)

Creates role in this guild

Declaration

func createRole(with options: [String : Any], then completion: ((Role?, RequestError?) -> Void)? = nil)

Parameters

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