Versions in this module Expand all Collapse all v1 v1.4.0 Dec 24, 2019 Changes in this version + var ErrAdjustBounds = xerrors.New("tatsumakigo: the amount to adjust must be between 0 and 50,000 (inclusive)") + var ErrAdjustInvalid = xerrors.New("tatsumakigo: the amount to adjust for add and remove actions must be above 0") + var ErrLeaderboardLimit = xerrors.New("tatsumakigo: guild leaderboard limit cannot be less than -1") + type Action string + const ActionAdd + const ActionRemove + const ActionSet + type Background struct + ImageURL string + Name string + type Badge struct + ImageURL string + Name string + type BadgeSlot struct + Badge *Badge + SlotNo int + type Client struct + func New(token string) *Client + func (t *Client) AdjustGuildUserPoints(guildID string, userID string, amount int, action Action) (*GuildUserPoints, error) + func (t *Client) AdjustGuildUserPointsWithContext(ctx context.Context, guildID string, userID string, amount int, action Action) (*GuildUserPoints, error) + func (t *Client) AdjustGuildUserScore(guildID string, userID string, amount int, action Action) (*GuildUserScore, error) + func (t *Client) AdjustGuildUserScoreWithContext(ctx context.Context, guildID string, userID string, amount int, action Action) (*GuildUserScore, error) + func (t *Client) GuildLeaderboard(guildID string, limit int) ([]*GuildRankedUser, error) + func (t *Client) GuildLeaderboardWithContext(ctx context.Context, guildID string, limit int) ([]*GuildRankedUser, error) + func (t *Client) GuildUserStats(guildID string, userID string) (*GuildUserStats, error) + func (t *Client) GuildUserStatsWithContext(ctx context.Context, guildID string, userID string) (*GuildUserStats, error) + func (t *Client) User(userID string) (*User, error) + func (t *Client) UserWithContext(ctx context.Context, userID string) (*User, error) + type GuildRankedUser struct + Rank int64 + Score int64 + UserID string + type GuildUserPoints struct + Points int64 + type GuildUserScore struct + Score int64 + type GuildUserStats struct + GuildID string + Points int64 + Score int64 + UserID int64 + type LevelProgress struct + CurrentXp int64 + RequiredXp int64 + type Ping struct + Pong bool + type User struct + AvatarURL string + Background *Background + BadgeSlots []*BadgeSlot + Credits int64 + InfoBox string + Level int64 + LevelProgress *LevelProgress + Name string + Rank int64 + Reputation int64 + Title string + TotalXp int64