Upvote

Upvote

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

Constructor

new Upvote(obj, id)

Parameters:
Name Type Description
obj object
id string
Source:

Extends

Members

guildID :string

The guild ID of the upvote.
Type:
  • string
Source:

(readonly) raw :object

The raw object of the class, giving the class properties value.
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: