datatypes

package
v1.10.3 Latest Latest
Warning

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

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

Documentation

Overview

Package datatypes primarily contains structs used for JSON operations.

Index

Constants

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

Error messages.

Variables

This section is empty.

Functions

This section is empty.

Types

type GuildInfo

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

GuildInfo represents information of a guild.

type H

type H map[string]interface{}

H is a shortcut to a string to interface map.

type LeaderboardEntry

type LeaderboardEntry struct {
	User       UserInfo
	Experience int
	Level      int
}

LeaderboardEntry represents an entry in a leaderboard.

type UserInfo

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

UserInfo represents information of a user.

Jump to

Keyboard shortcuts

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