discordaio.role

Classes

  • Role: Represents a discord role
class discordaio.role.Role(id=0, name='', color=0, hoist=False, position=0, permissions=0, managed=False, mentionable=False)[source]

Represents a discord role

New in version 0.2.0.

id

int – role id

name

str – 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

permissions

int – permission bit set

managed

bool – whether this role is managed by an integration

mentionable

bool – whether this role is mentionable

Inheritance

Inheritance diagram of Role