Discord Eraser Bot

User
in package

Read onlyYes
FinalYes
Tags
see
https://discord.com/developers/docs/resources/user#user-object-user-structure

Table of Contents

Properties

$accent_color  : int|null
$avatar  : string|null
$avatar_decoration_data  : AvatarDecorationData|null
$banner  : string|null
$bot  : bool|null
$discriminator  : string
$email  : string|null
$flags  : int|null
$global_name  : string|null
$id  : string
$locale  : string|null
$mfa_enabled  : bool|null
$premium_type  : PremiumType|null
$public_flags  : int|null
$system  : bool|null
$username  : string
$verified  : bool|null

Methods

__construct()  : mixed

Properties

$accent_color

public int|null $accent_color = null

$avatar

public string|null $avatar

$banner

public string|null $banner = null

$bot

public bool|null $bot = null

$discriminator

public string $discriminator

$email

public string|null $email = null

$flags

public int|null $flags = null

$global_name

public string|null $global_name

$locale

public string|null $locale = null

$mfa_enabled

public bool|null $mfa_enabled = null

$public_flags

public int|null $public_flags = null

$system

public bool|null $system = null

$username

public string $username

$verified

public bool|null $verified = null

Methods

__construct()

public __construct(string $id, string $username, string $discriminator, string|null $global_name, string|null $avatar[, bool|null $bot = null ][, bool|null $system = null ][, bool|null $mfa_enabled = null ][, string|null $banner = null ][, int|null $accent_color = null ][, string|null $locale = null ][, bool|null $verified = null ][, string|null $email = null ][, int|null $flags = null ][, PremiumType|null $premium_type = null ][, int|null $public_flags = null ][, AvatarDecorationData|null $avatar_decoration_data = null ]) : mixed
Parameters
$id : string

The user's id.

$username : string

The user's username, not unique across the platform.

$discriminator : string

The user's Discord-tag.

$global_name : string|null

The user's display name, if it is set. For bots, this is the application name.

$avatar : string|null

The user's avatar hash.

$bot : bool|null = null

Whether the user belongs to an OAuth2 application.

$system : bool|null = null

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

$mfa_enabled : bool|null = null

Whether the user has two factor enabled on their account.

$banner : string|null = null

The user's banner hash.

$accent_color : int|null = null

The user's banner color encoded as an integer representation of hexadecimal color code.

$locale : string|null = null

The user's chosen language option.

$verified : bool|null = null

Whether the email on this account has been verified.

$email : string|null = null

The user's email.

$flags : int|null = null

The flags on a user's account.

$premium_type : PremiumType|null = null

The type of Nitro subscription on a user's account.

$public_flags : int|null = null

The public flags on a user's account.

$avatar_decoration_data : AvatarDecorationData|null = null

Data for the user's avatar decoration.


        
On this page

Search results