Skip to main content

CreateGuildRole

Documentation


Documentation / @discordeno/types / CreateGuildRole

Interface: CreateGuildRole

Defined in: discordeno/guild.ts:214

https://docs.discord.com/developers/resources/guild#create-guild-role-json-params

Properties

color?

optional color?: number

Defined in: discordeno/guild.ts:223

RGB color value, default: 0

Deprecated

the colors field is recommended for use instead of this field


colors?

optional colors?: GuildRoleColors

Defined in: discordeno/guild.ts:225

The role's color


hoist?

optional hoist?: boolean

Defined in: discordeno/guild.ts:227

Whether the role should be displayed separately in the sidebar, default: false


icon?

optional icon?: string | null

Defined in: discordeno/guild.ts:229

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


mentionable?

optional mentionable?: boolean

Defined in: discordeno/guild.ts:233

Whether the role should be mentionable, default: false


name?

optional name?: string

Defined in: discordeno/guild.ts:216

Name of the role, max 100 characters, default: "new role"


permissions?

optional permissions?: string

Defined in: discordeno/guild.ts:218

Bitwise value of the enabled/disabled permissions, default: everyone permissions in guild


unicodeEmoji?

optional unicodeEmoji?: string | null

Defined in: discordeno/guild.ts:231

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