discordaio.user

Users in Discord are generally considered the base entity. Users can spawn across the entire platform, be members of guilds, participate in text and voice chat, and much more. Users are separated by a distinction of “bot” vs “normal.” Although they are similar, bot users are automated users that are “owned” by another user. Unlike normal users, bot users do not have a limitation on the number of Guilds they can be a part of.

Classes

class discordaio.user.User(id=0, username='', discriminator='', avatar='', bot=False, mfa_enabled=False, verified=False, email='')[source]

Represents a discord user

New in version 0.2.0.

id

int – the user’s id identify

username

str – the user’s username, not unique across the platform identify

discriminator

str – the user’s 4-digit discord-tag identify

avatar

str – the user’s avatar hash identify

bot

bool, optional – whether the user belongs to an OAuth2 application identify

mfa_enabled

bool, optional – whether the user has two factor enabled on their account identify

verified

bool, optional – whether the email on this account has been verified email

email

str, optional – the user’s email email

Inheritance

Inheritance diagram of User
class discordaio.user.UserConnection(id='', name='', type='', revoked=False, integrations=[])[source]

Represents a discord user connection

New in version 0.2.0.

id

str – id of the connection account

name

str – the username of the connection account

type

str – the service of the connection (twitch, youtube)

revoked

bool – whether the connection is revoked

integrations

list – an array of partial server integrations

Inheritance

Inheritance diagram of UserConnection