model

package
v0.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscordBotLoginInput

type DiscordBotLoginInput struct {
	Pwd string `json:"pwd" query:"pwd"`
}

type DiscordDailyResponse added in v0.4.0

type DiscordDailyResponse struct {
	XP        float64 `json:"xp"`
	Level     int     `json:"level"`
	Levelup   bool    `json:"levelup"`
	Needed    float64 `json:"needed"`
	Gained    float64 `json:"gained"`
	Streak    int     `json:"streak"`
	WithBonus float64 `json:"with_bonus"`
}

type DiscordMember

type DiscordMember struct {
	DiscordID   string  `json:"discord_id"`
	Name        string  `json:"name"`
	Nick        string  `json:"nick"`
	XP          float64 `json:"xp"`
	LastDailyAt string  `json:"last_daily_at"`
	Level       int     `json:"level"`
	Streak      int     `json:"streak"`
}

func (*DiscordMember) AddXP

func (d *DiscordMember) AddXP(xp float64)

func (*DiscordMember) CanClaimDaily

func (d *DiscordMember) CanClaimDaily() bool

func (*DiscordMember) GetNeededXP

func (d *DiscordMember) GetNeededXP() float64

type DiscordVerifyInput added in v0.3.0

type DiscordVerifyInput struct {
	ID   string `json:"id"`
	Nick string `json:"nick"`
	Name string `json:"name"`
}

type DiscordVerifyResponse added in v0.4.0

type DiscordVerifyResponse struct {
	Name string `json:"name"`
}

type HypixelPlayer added in v0.3.0

type HypixelPlayer struct {
	Date string `json:"date"`
	UUID string `json:"uuid"`
}

type HypixelPlayerResponse added in v0.3.0

type HypixelPlayerResponse struct {
	Success bool `json:"success"`
	Player  struct {
		UUID        string `json:"uuid"`
		DisplayName string `json:"displayname"`
		SocialMedia struct {
			Links struct {
				Discord string `json:"DISCORD"`
			} `json:"links"`
		} `json:"socialMedia"`
	} `json:"player"`
}

type MojangProfile added in v0.3.0

type MojangProfile struct {
	Date string
	UUID string `json:"id"`
	Name string `json:"name"`
}

type Unused added in v0.3.0

type Unused struct {
	Data string `json:"data"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL