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, system=False, mfa_enabled=False, locale='', verified=False, email='', flags=0, premium_type=0, public_flags=0)[source]

Represents a discord user

New in version 0.2.0.

id

the user’s id identify

Type:int
username

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

Type:str
discriminator

the user’s 4-digit discord-tag identify

Type:str
avatar

the user’s avatar hash identify

Type:str
bot

whether the user belongs to an OAuth2 application identify

Type:bool, optional
system

whether the user is an Official Discord System user (part of the urgent message system)

Type:bool, optional
mfa_enabled

whether the user has two factor enabled on their account identify

Type:bool, optional
verified

whether the email on this account has been verified email

Type:bool, optional
email

the user’s email email

Type:str, optional
flags

the flags on a user’s account

Type:int, optional
premium_type

the type of Nitro subscription on a user’s account

Type:int, optional
public_flags

the public flags on a user’s account

Type:int, optional

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

id of the connection account

Type:str
name

the username of the connection account

Type:str
type

the service of the connection (twitch, youtube)

Type:str
revoked

whether the connection is revoked

Type:bool
integrations

an array of partial server integrations

Type:list

Inheritance

Inheritance diagram of UserConnection