User

Constructor

new users(userobject, client)

Properties

username

The username of the user

Returns - Stringarrow-up-right

id

The id of the user

Returns - Numberarrow-up-right

tag

The tag of the user in this format: username#discriminator

Returns - Stringarrow-up-right

flags

The flags of the user

Returns - Numberarrow-up-right

bot

Whether or not the user is a bot

Returns - Booleanarrow-up-right

client

The client of the bot the user is in

Returns - ?client

Methods

displayAvatarURL(options = {})

Returns the avatar url of the user. Returns null if user avatar is the default one.

Param

Required?

Description

options.format

false

The format of the url in png, gif, jpg, or webp

Default: png

options.size

false

The size of the image. | Default: 2048

Returns - URLarrow-up-right

Last updated