Discord Eraser Bot

Role
in package

Read onlyYes
FinalYes
Tags
see
https://discord.com/developers/docs/topics/permissions#role-object-role-structure

Table of Contents

Properties

$color  : int
$flags  : int
$hoist  : bool
$icon  : string|null
$id  : string
$managed  : bool
$mentionable  : bool
$name  : string
$permissions  : string
$position  : int
$tags  : RoleTags|null
$unicode_emoji  : string|null

Methods

__construct()  : mixed

Properties

$color

public int $color

$flags

public int $flags

$hoist

public bool $hoist

$icon

public string|null $icon = null

$managed

public bool $managed

$mentionable

public bool $mentionable

$name

public string $name

$permissions

public string $permissions

$position

public int $position

$unicode_emoji

public string|null $unicode_emoji = null

Methods

__construct()

public __construct(string $id, string $name, int $color, bool $hoist, int $position, string $permissions, bool $managed, bool $mentionable, int $flags[, string|null $icon = null ][, string|null $unicode_emoji = null ][, RoleTags|null $tags = null ]) : mixed
Parameters
$id : string

Role id.

$name : string

Role name.

$color : int

Integer representation of hexadecimal color code.

$hoist : bool

If this role is pinned in the user listing.

$position : int

Position of this role (roles with the same position are sorted by id).

$permissions : string

Permission bit set.

$managed : bool

Whether this role is managed by an integration.

$mentionable : bool

Whether this role is mentionable.

$flags : int

Role flags combined as a bitfield.

$icon : string|null = null

Role icon hash.

$unicode_emoji : string|null = null

Role unicode emoji.

$tags : RoleTags|null = null

The tags this role has.


        
On this page

Search results