Role to modify
Instance Method
modifyRole(_:with:then:)
Modifies a role from this guild
Declaration
func modifyRole(_ roleId: Snowflake, with options: [String : Any], then completion: ((Role?, RequestError?) -> Void)? = nil)
Parameters
roleId
-
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