handler

package
v0.0.0-...-1310ae7 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig() *oauth2.Config

func NewHandler

func NewHandler(d model.Database, c discord.BotClient, u discord.UserClient) *handler

Types

type Emojis

type Emojis struct {
	Emoji     []*model.Emoji     `json:"emojis"`
	Guild     []*model.Guild     `json:"guilds"`
	EmojiUser []*model.EmojiUser `json:"users"`
}

type Guild

type Guild struct {
	ID        uint64 `json:"id,string"`
	Name      string `json:"name"`
	Icon      string `json:"icon"`
	Owner     bool   `json:"owner"`
	BotExists bool   `json:"botexists"`
	CanInvite bool   `json:"caninvite"`
}

type JWTClaims

type JWTClaims struct {
	Username      string `json:"username"`
	Locale        string `json:"locale"`
	Avater        string `json:"avater"`
	Discriminator string `json:"discriminator"`
	ID            uint64 `json:"id,string"`
	jwt.StandardClaims
}

Jump to

Keyboard shortcuts

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