Instance Method

modifyRole(_:for:with:then:)

Modifies a role from a guild

Declaration

func modifyRole(_ roleId: Snowflake, for guildId: Snowflake, with options: [String : Any], then completion: ((Role?, RequestError?) -> Void)? = nil)

Parameters

roleId

Role to modify

guildId

Guild to modify role from

options

Preconfigured options to modify guild roles with

Options Params

  • name: The name to assign to the role

  • permissions: The bitwise permission integer

  • color: RGB int color value to assign to the role

  • hoist: Whether or not this role should be hoisted on the member list

  • mentionable: Whether or not this role should be mentionable by everyone