Documentation ¶
Overview ¶
Package structs primarily contains structs used for JSON operations.
Index ¶
Constants ¶
View Source
const ( InternalServerError = "Internal Server Error" NoSuchFileOrDirectory = "No such file or directory" BadRequest = "Bad Request" )
Error messages.
View Source
const ( BadRequestAPI = "bad request" PermissionDeniedAPI = "permission denied" )
API error messages.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GuildInfo ¶
type GuildInfo struct { Name string `json:"name"` ID string `json:"id"` CreationTime time.Time `json:"creation_time"` IconURL string `json:"icon_url"` Members []UserInfo `json:"members"` }
GuildInfo represents information of a guild.
type LeaderboardEntry ¶
type LeaderboardEntry struct { User UserInfo `json:"user"` Experience int `json:"experience"` Level int `json:"level"` }
LeaderboardEntry represents an entry in a leaderboard.
Click to show internal directories.
Click to hide internal directories.