User

Constructor

new users(userobject, client)

Properties

username

The username of the user

Returns - String

id

The id of the user

Returns - Number

tag

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

Returns - String

flags

The flags of the user

Returns - Number

bot

Whether or not the user is a bot

Returns - Boolean

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 - URL

Last updated