datatypes

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Structs used for JSON marshalling by the web server.

Index

Constants

View Source
const (
	InternalServerError   = "Internal Server Error"
	NoSuchFileOrDirectory = "No such file or directory"
	ServiceUnavailable    = "Service Unavailable"
	BadRequest            = "Bad Request"
)

Error messages and stuff

Variables

This section is empty.

Functions

This section is empty.

Types

type GuildInfo

type GuildInfo struct {
	Name    string
	ID      string
	IconURL string
	Members []UserInfo
}

type H

type H map[string]interface{}

type LeaderboardEntry

type LeaderboardEntry struct {
	User       UserInfo
	Experience int
	Level      int
}

type UserInfo

type UserInfo struct {
	Name          string
	ID            string
	AvatarURL     string
	Discriminator string
	CreationTime  time.Time
	Bot           bool
}

Jump to

Keyboard shortcuts

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