Preparing search index...
The search index is not available
dbdteamjs
dbdteamjs
Structures
GuildRole
Class GuildRole
Represents a Discord Guild Role
Hierarchy (
view full
)
Base
GuildRole
Index
Constructors
constructor
Properties
#client
data
flags
guild?
guild
Id
hoist
icon
id
managed
mentionable
name
permissions
position
tags
Accessors
get
Binary
get
Epoch
Methods
_patch
delete
edit
set
Color
set
Emoji
set
Hoist
set
Icon
set
Mentionable
set
Name
set
Position
Constructors
constructor
new
Guild
Role
(
data
,
guild
,
client
)
:
GuildRole
Parameters
data
:
APIRole
guild
:
Guild
client
:
Client
Returns
GuildRole
Properties
Private
#client
#client
:
Client
data
data
:
APIRole
flags
flags
:
any
Optional
Readonly
guild
guild
?:
Guild
guild
Id
guild
Id
:
any
hoist
hoist
:
boolean
icon
icon
:
null
|
string
id
id
:
any
managed
managed
:
boolean
mentionable
mentionable
:
boolean
name
name
:
any
permissions
permissions
:
any
position
position
:
number
tags
tags
:
APIRoleTags
Accessors
get
Binary
get
getBinary
(
)
:
bigint
Returns
bigint
get
Epoch
get
getEpoch
(
)
:
bigint
Returns
bigint
Methods
_patch
_patch
(
)
:
void
Returns
void
delete
delete
(
reason
?
)
:
Promise
<
boolean
>
Parameters
reason
:
undefined
= undefined
Returns
Promise
<
boolean
>
edit
edit
(
body
,
reason
?
)
:
Promise
<
null
|
GuildRole
>
Parameters
body
:
RESTPatchAPIGuildRoleJSONBody
&
{
position
?:
number
;
}
Optional
reason
:
string
Returns
Promise
<
null
|
GuildRole
>
set
Color
set
Color
(
color
,
reason
?
)
:
Promise
<
null
|
GuildRole
>
Parameters
color
:
number
Optional
reason
:
string
Returns
Promise
<
null
|
GuildRole
>
set
Emoji
set
Emoji
(
unicode_emoji
,
reason
?
)
:
Promise
<
null
|
GuildRole
>
Parameters
unicode_emoji
:
string
Optional
reason
:
string
Returns
Promise
<
null
|
GuildRole
>
set
Hoist
set
Hoist
(
hoist
,
reason
?
)
:
Promise
<
null
|
GuildRole
>
Parameters
hoist
:
boolean
Optional
reason
:
string
Returns
Promise
<
null
|
GuildRole
>
set
Icon
set
Icon
(
icon
,
reason
?
)
:
Promise
<
null
|
GuildRole
>
Parameters
icon
:
string
Optional
reason
:
string
Returns
Promise
<
null
|
GuildRole
>
set
Mentionable
set
Mentionable
(
mentionable
,
reason
?
)
:
Promise
<
null
|
GuildRole
>
Parameters
mentionable
:
boolean
Optional
reason
:
string
Returns
Promise
<
null
|
GuildRole
>
set
Name
set
Name
(
name
,
reason
?
)
:
Promise
<
null
|
GuildRole
>
Parameters
name
:
string
Optional
reason
:
string
Returns
Promise
<
null
|
GuildRole
>
set
Position
set
Position
(
position
,
reason
?
)
:
Promise
<
null
|
GuildRole
>
Parameters
position
:
number
Optional
reason
:
string
Returns
Promise
<
null
|
GuildRole
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
#client
data
flags
guild
guild
Id
hoist
icon
id
managed
mentionable
name
permissions
position
tags
get
Binary
get
Epoch
_patch
delete
edit
set
Color
set
Emoji
set
Hoist
set
Icon
set
Mentionable
set
Name
set
Position
dbdteamjs
Loading...
Generated using
TypeDoc
Represents a Discord Guild Role