1.0 Objects | BotVoteData and GuildVoteData - Hopeful-Developers/topggwebhooks4j GitHub Wiki
BotVoteData / GuildVoteData
BotVoteData
| method | return-type | purpose |
|---|---|---|
getUserID() |
Snowflake | the voters user ID. |
getBotID() |
Snowflake | the ID of the bot that was voted for. |
getType() |
VotingType (enum) | the Type of the Vote that was received: can be UPVOTE or TEST, or INVALID. |
isWeekend() |
Boolean | returns true/false if it is the weekend (UTC based). |
getQuery() |
Query | returns the Query data from the associated Vote |
GuildVoteData
| method | return-type | purpose |
|---|---|---|
getUserID() |
Snowflake | the voters user ID. |
getGuildID() |
Snowflake | the ID of the Guild that was voted for. |
getType() |
VotingType (enum) | the Type of the Vote that was received: can be UPVOTE or TEST, or INVALID. |
getQuery() |
Query | returns the Query data from the associated Vote |