Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeSegments ¶
DecodeSegments decodes segments into a map
func EncodeSegments ¶
EncodeSegments returns an encoded string of segments
Types ¶
type CustomCommand ¶
CustomCommand holds data about a custom command
type Database ¶
type Database struct { AddToDb func(el queue.Element, exist bool) CheckInDb func(link string) (queue.Element, error) AddCommand func(command string, song string, guild string, loop bool) error RemoveCustom func(command string, guild string) error RemoveFromDB func(el queue.Element) GetCustomCommands func() (map[string]map[string]*CustomCommand, error) AddToBlacklist func(id string) error RemoveFromBlacklist func(id string) error Close func() UpdateDJRole func(guild string, role string) error GetDJ func() (map[string]DJ, error) GetBlacklist func() (map[string]bool, error) SetDJSettings func(guild string, enabled bool) error AddLinkDB func(id, link string) error GetFavorites func(userID string) []Favorite AddFavorite func(userID string, favorite Favorite) error RemoveFavorite func(userID, name string) error }
Click to show internal directories.
Click to hide internal directories.