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

role id

Type:int
name

role name

Type:str
color

integer representation of hexadecimal color code

Type:int
hoist

if this role is pinned in the user listing

Type:bool
position

position of this role

Type:int
permissions

permission bit set

Type:int
managed

whether this role is managed by an integration

Type:bool
mentionable

whether this role is mentionable

Type:bool

Inheritance

Inheritance diagram of Role