interop

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: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscordUser

type DiscordUser struct {
	Username string `json:"username"`
	ID       string `json:"id"`
	Avatar   string `json:"avatar" datastore:",noindex"`
	Email    string `json:"email"`
}

DiscordUser is a user from discord/users/@me.

func GetOwnDiscordUser

func GetOwnDiscordUser(t moauth2.Tokens) (*DiscordUser, error)

type DiscordUserGuild

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

func GetOwnDiscordGuilds

func GetOwnDiscordGuilds(t moauth2.Tokens) ([]DiscordUserGuild, error)

Jump to

Keyboard shortcuts

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