discordwidget

package
v0.0.0-...-b78a99e Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	Position int    `json:"position"`
	ID       string `json:"id"`
	Name     string `json:"name"`
}

type Game

type Game struct {
	Name string `json:"name"`
}

type Guild

type Guild struct {
	Channels  []Channel `json:"channels"`
	InviteURL string    `json:"instant_invite"`
	ID        string    `json:"id"`
	Members   []Member  `json:"members"`
	Name      string    `json:"name"`
}

func GetGuild

func GetGuild(guildID string) (*Guild, error)

type Member

type Member struct {
	Username      string `json:"username"`
	Status        string `json:"status"`
	AvatarURL     string `json:"avatar_url"`
	Avatar        string `json:"avatar"`
	Discriminator string `json:"discriminator"`
	ID            string `json:"id"`
	Game          *Game  `json:"game,omitempty"`
	Mute          bool   `json:"mute,omitempty"`
	Suppress      bool   `json:"suppress,omitempty"`
	Deaf          bool   `json:"deaf,omitempty"`
	ChannelID     string `json:"channel_id,omitempty"`
	SelfDeaf      bool   `json:"self_deaf,omitempty"`
	SelfMute      bool   `json:"self_mute,omitempty"`
	Nick          string `json:"nick,omitempty"`
}

func (Member) GetGame

func (m Member) GetGame() string

Jump to

Keyboard shortcuts

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