Skip to content
Search
Search the documentation
Vote
GitHub GitHub

Vote

Interface: Vote

Defined in: v1/types/base.ts:123

Represents a vote on Top.gg.

Properties

created_at

created_at: string

Defined in: v1/types/base.ts:139

The timestamp of when the user voted.


expires_at

expires_at: string

Defined in: v1/types/base.ts:144

The timestamp of when the vote expires (i.e., when the user can vote again). This is typically 12 hours after the created_at timestamp, but may vary based on the user’s voting history and other factors.


platform_id

platform_id: string

Defined in: v1/types/base.ts:131

The user’s ID on the project’s platform (e.g., Discord ID).


user_id

user_id: string

Defined in: v1/types/base.ts:127

The Top.gg ID of the user who voted.


weight

weight: number

Defined in: v1/types/base.ts:135

The amount of votes this vote counted for.