models

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ChannelNotFoundError = fmt.Errorf("no channel found")
)

Functions

This section is empty.

Types

type Conf

type Conf struct {
	ID             string
	VoiceChannel   string `json:"voice"`
	TextChannel    string `json:"text"`
	QueueHistory   int    `json:"history"`
	PrivilegedRole string `json:"privileged_role"`
}

Conf represents the guild conf at a given point.

func NewConf

func NewConf(id string) *Conf

New creates a new conf for a given guild ID

func (*Conf) SetChannel

func (c *Conf) SetChannel(s *discordgo.Session, value string, voice bool) error

SetVoiceChannel will cycle through the available channels to check if the vocal channel actually exists and set its ID in the conf

type FavList

type FavList struct {
	ID      string
	UserID  string     `json:"user"`
	GuildID string     `json:"guild"`
	Favs    []FavTrack `json:"favs"`
}

type FavTrack

type FavTrack struct {
	Title        string `json:"title"`
	PermalinkURL string `json:"permalink_url"`
	Author       string `json:""`
}

Jump to

Keyboard shortcuts

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