User

User

Represents a User

Constructor

new User()

Source:
Properties:
Name Type Attributes Description
avatar String <nullable>

The avatar hash of the user

avatarURL String

The url of the user's avatar

bot Boolean

Whether the user is a bot or not

discriminator String

The discriminator of the user

id Snowflake

The id of the user

tag String

The tag of the user

username String

The username of the user

Methods

createDM() → {Promise.<DMChannel>}

Source:

Similar to Client#createDM()

Returns:
Type
Promise.<DMChannel>

(async) createEmbed(embed) → {Promise.<Message>}

Source:

Sends an embed to the user

Parameters:
Name Type Description
embed Object

The embed to send

Returns:
Type
Promise.<Message>

(async) createMessage(content) → {Promise.<Message>}

Source:

Sends a message to the user

Parameters:
Name Type Description
content String

The content of the message

Returns:
Type
Promise.<Message>