NewFDSClient(url string) *Client NewFDSClient creates a new client for the FDS API. For most cases, it is
recommended to use the SetToken method soon after to set the token.
SetToken(token string) SetToken (on Client) sets the token for the client. This token is used for authentication.
/discord
POST/verifyMeant for linking Discord to Minecraft accounts
Request Body (JSON)
type DiscordVerifyRequest struct {
ID string `json:"id"`
Nick string `json:"nick"`
Name string `json:"name"`
}
Response Body (JSON)
type DiscordVerifyResponse struct {
Actual string `json:"actual"`
}
Method (on Client)
Verify(input *DiscordVerifyRequest) (*DiscordVerifyResponse, error) Verify is used to link a Discord
account to a Hypixel account. The backend will store a snapshot of the player's Hypixel stats and Mojang profile as
well as store the Discord user.
PATCH/:id/dailyClaim a daily reward for a Discord user by id
Request Parameters
id the Discord id of the user whose daily should be claimed
Response Body (JSON)
type DiscordDailyResponse struct {
Actual string `json:"actual"`
}
Method (on Client)
ClaimDaily(id string) (*DiscordDailyResponse, error) Daily is used to claim the daily reward for a Discord user.
The backend will return the user's updated stats.
POST/bot-loginLog in port for a Discord bot instanceno auth
Request Body (JSON)
type DiscordBotLoginRequest struct {
Pwd string `json:"pwd" query:"pwd"`
}
Response Body (JSON)
type DiscordBotLoginResponse struct {
Actual string `json:"actual"`
}
Method (on Client)
BotLogin(input *DiscordBotLoginRequest) (*DiscordBotLoginResponse, error) BotLogin is used to login the bot to the
Discord API. No token is required for this endpoint.