Skip to main content
Module

x/discord_api_types/v8.ts>RESTPatchAPIGuildRoleJSONBody

Up to date Discord API Typings, versioned by the API version
Go to Latest
interface RESTPatchAPIGuildRoleJSONBody
Deprecated
Deprecated

API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.

import { type RESTPatchAPIGuildRoleJSONBody } from "https://deno.land/x/discord_api_types@0.37.82/v8.ts";

Properties

optional
name: string | null | undefined

Name of the role

optional
permissions: Permissions | null | undefined

Bitwise value of the enabled/disabled permissions

optional
color: number | null | undefined

RGB color value

optional
hoist: boolean | null | undefined

Whether the role should be displayed separately in the sidebar

optional
icon: string | null | undefined

The role's icon image (if the guild has the ROLE_ICONS feature)

optional
unicode_emoji: string | null | undefined

The role's unicode emoji as a standard emoji (if the guild has the ROLE_ICONS feature)

optional
mentionable: boolean | null | undefined

Whether the role should be mentionable