Documentation ¶
Index ¶
- type BaseCommand
- type Command
- func InitializeAllCommands(p *player.Players, l zerolog.Logger, sp *soundcloud.SoundCloudProvider, ...) []Command
- func NewAddCommand(p *player.Players, log zerolog.Logger, sp *soundcloud.SoundCloudProvider) Command
- func NewFavCommand(p *player.Players, log zerolog.Logger, storage *storage.StormDB) Command
- func NewJamCommand(p *player.Players, log zerolog.Logger) Command
- func NewNextCommand(p *player.Players, log zerolog.Logger, sp *soundcloud.SoundCloudProvider) Command
- func NewNowPlayingCommand(p *player.Players, log zerolog.Logger) Command
- func NewPauseCommand(p *player.Players, log zerolog.Logger) Command
- func NewPlayCommand(p *player.Players, log zerolog.Logger) Command
- func NewQueueCommand(p *player.Players, log zerolog.Logger) Command
- func NewRemoveCommand(p *player.Players, log zerolog.Logger) Command
- func NewSetupCommand(p *player.Players, log zerolog.Logger, storage *storage.StormDB) Command
- func NewSkipCommand(p *player.Players, log zerolog.Logger) Command
- func NewStatsCommand(p *player.Players, log zerolog.Logger) Command
- func NewStopCommand(p *player.Players, log zerolog.Logger) Command
- func NewVolumeCommand(p *player.Players, log zerolog.Logger) Command
- type Example
- type Help
- type Options
- type SubCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseCommand ¶
type BaseCommand struct { // Permissions ChannelRestriction acl.ChannelRestriction RoleRestriction acl.RoleRestriction // Command calls Long string Aliases []string Options Options // Internal fields SubCommands []SubCommand Help Help Players *player.Players // contains filtered or unexported fields }
func (BaseCommand) ACL ¶
func (c BaseCommand) ACL() (acl.ChannelRestriction, acl.RoleRestriction)
func (BaseCommand) Calls ¶
func (c BaseCommand) Calls() (string, []string)
func (BaseCommand) DisplayHelp ¶
func (BaseCommand) GetHelp ¶
func (c BaseCommand) GetHelp() Help
func (BaseCommand) Opts ¶
func (c BaseCommand) Opts() Options
type Command ¶
type Command interface { Handler(s *discordgo.Session, m *discordgo.Message, args []string) DisplayHelp(s *discordgo.Session, m *discordgo.Message, prefix string) GetHelp() Help ACL() (acl.ChannelRestriction, acl.RoleRestriction) Calls() (string, []string) Opts() Options }
func InitializeAllCommands ¶
func InitializeAllCommands(p *player.Players, l zerolog.Logger, sp *soundcloud.SoundCloudProvider, st *storage.StormDB) []Command
func NewAddCommand ¶
func NewAddCommand(p *player.Players, log zerolog.Logger, sp *soundcloud.SoundCloudProvider) Command
func NewFavCommand ¶
func NewNextCommand ¶
func NewNextCommand(p *player.Players, log zerolog.Logger, sp *soundcloud.SoundCloudProvider) Command
func NewNowPlayingCommand ¶
func NewSetupCommand ¶
Click to show internal directories.
Click to hide internal directories.