detritus

Roleclass

Guild Role Structure, used in [Guild]

On this page

Guild Role Structure, used in [Guild]

import { Structures } from 'detritus-client';

Structures.Role;
27 properties11 methods13 inheritedsrc/structures/role.ts:66

Constructor

Properties

client
readonly
Inherited from BaseStructure.client
color
number
Default 0
colors
RoleColors | null
Default null
flags
number
Default 0
guildId
string
Default ''
hoist
boolean
Default false
icon
string | null
Default null
id
string
Default ''
managed
boolean
Default false
mentionable
boolean
Default false
name
string
Default ''
permissions
bigint
Default Permissions.NONE
position
number
Default 0
tags
RoleTags | null
Default null
unicodeEmoji
string | null
Default null

Accessors

botId
string | null
get
createdAt
Date
get
createdAtUnix
number
get
guild
Guild | null
get
iconUrl
string | null
get
integrationId
string | null
get
isBoosterRole
boolean
get
isClone
boolean
get
Inherited from BaseStructure.isClone
isDefault
boolean
get
isInPrompt
boolean
get
isPurchasable
boolean
get
members
get
mention
string
get
shardId
number
get
Inherited from BaseStructure.shardId
subscriptionListingId
string | null
get

Methods

permissionsIn()

src/structures/role.ts:203
permissionsIn(
  channelId: string | ChannelGuildBase,
  __namedParameters?: { ignoreAdministrator?: boolean },
): bigint
channelId
__namedParameters?
{ ignoreAdministrator?: boolean }
__namedParameters.ignoreAdministrator?
boolean