title: Create Guild Role category: Guild
createGuildRole
$client->guild->createGuildRole($parameters);
Create a new role for the guild. Requires the 'MANAGE_ROLES' permission. Fires a Guild Role Create Gateway event. All JSON params are optional.
Name | Type | Required | Default |
---|---|---|---|
guild.id | snowflake | true | null |
name | string | false | "new role" |
permissions | integer | false | null |
color | integer | false | 0 |
hoist | bool | false | null |
mentionable | bool | false | null |
Returns the new role object on success.
Can Return: