Upvote

Upvote

Resembles an upvote from the `/bots/:id/upvotes` endpoint.

Constructor

new Upvote(obj, id)

Parameters:
Name Type Description
obj object
id string
Source:

Extends

Members

botID :string

The bot ID of which the users upvoted.
Type:
  • string
Source:

(readonly) raw :object

The raw object used to create the class and gave class values.
Type:
  • object
Inherited From:
Source:

timestamp :number

The timestamp in which the upvote took place.
Type:
  • number
Source:

user :User

The user that upvoted.
Type:
Source:

Methods

toString()

Returns text that Discord recognizes as a user mention.
Source: