discord

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: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBotClient

func NewBotClient(token string) *bot

func NewUserClient

func NewUserClient(config *oauth2.Config) *user

Types

type BotClient

type BotClient interface {
	GetGuilds() (guild []*Guild, err error)
	GetEmojis(guildid uint64) ([]*Emoji, error)
}

type Emoji

type Emoji struct {
	ID       uint64    `json:"id,string"`
	Name     string    `json:"name"`
	User     EmojiUser `json:"user"`
	Animated bool      `json:"animated"`
	GuildID  uint64
}

type EmojiUser

type EmojiUser struct {
	UserName      string `json:"username"`
	Discriminator string `json:"discriminator"`
	ID            uint64 `json:"id,string"`
	Avatar        string `json:"avatar"`
}

type Guild

type Guild struct {
	Owner       bool   `json:"owner"`
	Permissions int    `json:"permissions"`
	Icon        string `json:"icon"`
	ID          uint64 `json:"id,string"`
	Name        string `json:"name"`
}

type UserClient

type UserClient interface {
	GetGuilds(token *oauth2.Token) (guild []*Guild, err error)
}

Jump to

Keyboard shortcuts

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