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 snowflake.ID, loop bool) error
RemoveCustom func(command string, guild snowflake.ID) error
RemoveFromDB func(el queue.Element)
GetCustomCommands func() (map[snowflake.ID]map[string]*CustomCommand, error)
AddToBlacklist func(id snowflake.ID) error
RemoveFromBlacklist func(id snowflake.ID) error
Close func()
UpdateDJRole func(guild snowflake.ID, role snowflake.ID) error
GetDJ func() (map[snowflake.ID]DJ, error)
GetBlacklist func() (*sync.Map, error)
SetDJSettings func(guild snowflake.ID, enabled bool) error
AddLinkDB func(id, link string) error
GetFavorites func(userID snowflake.ID) []Favorite
AddFavorite func(userID snowflake.ID, favorite Favorite) error
RemoveFavorite func(userID snowflake.ID, name string) error
GetSearch func(term string) (string, error)
AddSearch func(term, link string) error
RemoveSearch func(term string) error
GetPlaylist func(playlist string) ([]string, error)
AddPlaylist func(playlist, entry string, number int) error
RemovePlaylist func(playlist string) error
}
Click to show internal directories.
Click to hide internal directories.