Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command interface { Name() string Description() string Build(*Bot) *discordgo.ApplicationCommand Handle(*discordgo.Session, *discordgo.InteractionCreate) }
type CommandBasic ¶
type CommandBasic struct {
// contains filtered or unexported fields
}
func NewCommandBasic ¶
func NewCommandBasic(name, description string, command ConfigCommand) *CommandBasic
func (*CommandBasic) Build ¶
func (c *CommandBasic) Build(bot *Bot) *discordgo.ApplicationCommand
func (*CommandBasic) Description ¶
func (c *CommandBasic) Description() string
func (*CommandBasic) Handle ¶
func (c *CommandBasic) Handle(s *discordgo.Session, i *discordgo.InteractionCreate)
func (*CommandBasic) Name ¶
func (c *CommandBasic) Name() string
type CommandServer ¶
type CommandServer struct {
// contains filtered or unexported fields
}
func (*CommandServer) Build ¶
func (c *CommandServer) Build(bot *Bot) *discordgo.ApplicationCommand
func (*CommandServer) Description ¶
func (c *CommandServer) Description() string
func (*CommandServer) Handle ¶
func (c *CommandServer) Handle(s *discordgo.Session, i *discordgo.InteractionCreate)
func (*CommandServer) Name ¶
func (c *CommandServer) Name() string
type Config ¶
type Config struct { Guild string Commands map[string]ConfigCommand Servers map[string]ConfigServer }
func ReadConfig ¶
type ConfigCommand ¶
func (*ConfigCommand) String ¶
func (c *ConfigCommand) String() string
type ConfigServer ¶
type ConfigServer struct { Name string Start ConfigCommand Stop ConfigCommand }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.