Documentation ¶
Index ¶
- type Action
- type ApiError
- type Client
- func (c *Client) GetAllTimeGuildMemberRanking(guildID string, userID string) (*GuildMemberRanking, error)
- func (c *Client) GetAllTimeGuildMemberRankingWithContext(ctx context.Context, guildID string, userID string) (*GuildMemberRanking, error)
- func (c *Client) GetAllTimeGuildRankings(guildID string, offset uint64) (*GuildRankings, error)
- func (c *Client) GetAllTimeGuildRankingsWithContext(ctx context.Context, guildID string, offset uint64) (*GuildRankings, error)
- func (c *Client) GetCurrentMonthGuildMemberRanking(guildID string, userID string) (*GuildMemberRanking, error)
- func (c *Client) GetCurrentMonthGuildMemberRankingWithContext(ctx context.Context, guildID string, userID string) (*GuildMemberRanking, error)
- func (c *Client) GetCurrentMonthGuildRankings(guildID string, offset uint64) (*GuildRankings, error)
- func (c *Client) GetCurrentMonthGuildRankingsWithContext(ctx context.Context, guildID string, offset uint64) (*GuildRankings, error)
- func (c *Client) GetCurrentWeekGuildMemberRanking(guildID string, userID string) (*GuildMemberRanking, error)
- func (c *Client) GetCurrentWeekGuildMemberRankingWithContext(ctx context.Context, guildID string, userID string) (*GuildMemberRanking, error)
- func (c *Client) GetCurrentWeekGuildRankings(guildID string, offset uint64) (*GuildRankings, error)
- func (c *Client) GetCurrentWeekGuildRankingsWithContext(ctx context.Context, guildID string, offset uint64) (*GuildRankings, error)
- func (c *Client) GetStoreListing(listingID string) (*StoreListing, error)
- func (c *Client) GetStoreListingWithContext(ctx context.Context, listingID string) (*StoreListing, error)
- func (c *Client) GetUserProfile(userID string) (*User, error)
- func (c *Client) GetUserProfileWithContext(ctx context.Context, userID string) (*User, error)
- func (c *Client) ModifyGuildMemberScore(guildID string, userID string, action Action, amount uint32) (*GuildMemberScore, error)
- func (c *Client) ModifyGuildMemberScoreWithContext(ctx context.Context, guildID string, userID string, action Action, ...) (*GuildMemberScore, error)
- type GuildMemberRanking
- type GuildMemberScore
- type GuildRanking
- type GuildRankings
- type StoreCurrency
- type StoreListing
- type StorePrice
- type Timestamp
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetAllTimeGuildMemberRanking ¶
func (c *Client) GetAllTimeGuildMemberRanking(guildID string, userID string) (*GuildMemberRanking, error)
GetAllTimeGuildMemberRanking wraps around GetAllTimeGuildMemberRankingWithContext using the background context.
func (*Client) GetAllTimeGuildMemberRankingWithContext ¶
func (c *Client) GetAllTimeGuildMemberRankingWithContext(ctx context.Context, guildID string, userID string) (*GuildMemberRanking, error)
GetAllTimeGuildMemberRankingWithContext gets a guild member's all time ranking using the specified context.
func (*Client) GetAllTimeGuildRankings ¶
func (c *Client) GetAllTimeGuildRankings(guildID string, offset uint64) (*GuildRankings, error)
GetAllTimeGuildRankings wraps around GetAllTimeGuildRankingsWithContext using a background context.
func (*Client) GetAllTimeGuildRankingsWithContext ¶
func (c *Client) GetAllTimeGuildRankingsWithContext(ctx context.Context, guildID string, offset uint64) (*GuildRankings, error)
GetAllTimeGuildRankingsWithContext gets a guild's all time rankings using the specified context.
func (*Client) GetCurrentMonthGuildMemberRanking ¶ added in v1.1.0
func (c *Client) GetCurrentMonthGuildMemberRanking(guildID string, userID string) (*GuildMemberRanking, error)
GetCurrentMonthGuildMemberRanking wraps around GetCurrentMonthGuildMemberRankingWithContext using the background context.
func (*Client) GetCurrentMonthGuildMemberRankingWithContext ¶ added in v1.1.0
func (c *Client) GetCurrentMonthGuildMemberRankingWithContext(ctx context.Context, guildID string, userID string) (*GuildMemberRanking, error)
GetCurrentMonthGuildMemberRankingWithContext gets a guild member's current month ranking using the specified context.
func (*Client) GetCurrentMonthGuildRankings ¶ added in v1.1.0
func (c *Client) GetCurrentMonthGuildRankings(guildID string, offset uint64) (*GuildRankings, error)
GetCurrentMonthGuildRankings wraps around GetCurrentMonthGuildRankingsWithContext using a background context.
func (*Client) GetCurrentMonthGuildRankingsWithContext ¶ added in v1.1.0
func (c *Client) GetCurrentMonthGuildRankingsWithContext(ctx context.Context, guildID string, offset uint64) (*GuildRankings, error)
GetCurrentMonthGuildRankingsWithContext gets a guild's current month rankings using the specified context.
func (*Client) GetCurrentWeekGuildMemberRanking ¶ added in v1.1.0
func (c *Client) GetCurrentWeekGuildMemberRanking(guildID string, userID string) (*GuildMemberRanking, error)
GetCurrentWeekGuildMemberRanking wraps around GetCurrentWeekGuildMemberRankingWithContext using the background context.
func (*Client) GetCurrentWeekGuildMemberRankingWithContext ¶ added in v1.1.0
func (c *Client) GetCurrentWeekGuildMemberRankingWithContext(ctx context.Context, guildID string, userID string) (*GuildMemberRanking, error)
GetCurrentWeekGuildMemberRankingWithContext gets a guild member's current week ranking using the specified context.
func (*Client) GetCurrentWeekGuildRankings ¶ added in v1.1.0
func (c *Client) GetCurrentWeekGuildRankings(guildID string, offset uint64) (*GuildRankings, error)
GetCurrentWeekGuildRankings wraps around GetCurrentWeekGuildRankingsWithContext using a background context.
func (*Client) GetCurrentWeekGuildRankingsWithContext ¶ added in v1.1.0
func (c *Client) GetCurrentWeekGuildRankingsWithContext(ctx context.Context, guildID string, offset uint64) (*GuildRankings, error)
GetCurrentWeekGuildRankingsWithContext gets a guild's current week rankings using the specified context.
func (*Client) GetStoreListing ¶ added in v1.2.0
func (c *Client) GetStoreListing(listingID string) (*StoreListing, error)
GetStoreListing wraps around GetStoreListingWithContext using the background context.
func (*Client) GetStoreListingWithContext ¶ added in v1.2.0
func (c *Client) GetStoreListingWithContext(ctx context.Context, listingID string) (*StoreListing, error)
GetStoreListingWithContext gets a store listing using the specified context.
func (*Client) GetUserProfile ¶
GetUserProfile wraps around GetUserProfileWithContext using the background context.
func (*Client) GetUserProfileWithContext ¶
GetUserProfileWithContext gets a user's profile using the specified context.
func (*Client) ModifyGuildMemberScore ¶ added in v1.2.0
func (c *Client) ModifyGuildMemberScore(guildID string, userID string, action Action, amount uint32) (*GuildMemberScore, error)
ModifyGuildMemberScore wraps around ModifyGuildMemberScore using the background context.
func (*Client) ModifyGuildMemberScoreWithContext ¶ added in v1.2.0
func (c *Client) ModifyGuildMemberScoreWithContext(ctx context.Context, guildID string, userID string, action Action, amount uint32) (*GuildMemberScore, error)
ModifyGuildMemberScoreWithContext modifies a guild member's score using the specified context.
type GuildMemberRanking ¶
type GuildMemberScore ¶ added in v1.2.0
type GuildRanking ¶
type GuildRankings ¶
type GuildRankings struct { GuildID string `json:"guild_id"` Rankings []*GuildRanking `json:"rankings"` }
type StoreCurrency ¶ added in v1.2.0
type StoreCurrency uint8
const ( StoreCurrencyCredits StoreCurrency = iota StoreCurrencyTokens StoreCurrencyEmeralds StoreCurrencyCandyCane StoreCurrencyUSD StoreCurrencyCandyCorn )
type StoreListing ¶ added in v1.2.0
type StoreListing struct { ID string `json:"id"` Name string `json:"name"` Summary string `json:"summary"` Description string `json:"description"` New bool `json:"new"` Preview string `json:"preview"` Prices []*StorePrice `json:"prices"` Categories []string `json:"categories"` Tags []string `json:"tags"` }
type StorePrice ¶ added in v1.2.0
type StorePrice struct { Currency StoreCurrency `json:"currency"` Amount float32 `json:"amount"` }
type User ¶
type User struct { AvatarURL string `json:"avatar_url"` Credits uint64 `json:"credits"` Discriminator string `json:"discriminator"` ID string `json:"id"` InfoBox string `json:"info_box"` Reputation uint64 `json:"reputation"` SubscriptionRenewal Timestamp `json:"subscription_renewal"` SubscriptionType uint8 `json:"subscription_type"` Title string `json:"title"` Tokens uint64 `json:"tokens"` Username string `json:"username"` XP uint64 `json:"xp"` }
Source Files ¶
- bucket.go
- client.go
- client_guild_rankings.go
- client_guilds.go
- client_store.go
- client_user.go
- endpoint.go
- endpoint_guild_rankings.go
- endpoint_guilds.go
- endpoint_store.go
- endpoint_user.go
- rest_client.go
- rest_guild_rankings.go
- rest_guilds.go
- rest_store.go
- rest_user.go
- struct_error.go
- struct_guild_rankings.go
- struct_guilds.go
- struct_store.go
- struct_user.go
- type.go
- version.go