Documentation
¶
Index ¶
- type Framework
- func (f *Framework) AddCommand(name string, fun callbackFunction, permission int)
- func (f *Framework) OnError(fun fallbackFunction) *Framework
- func (f *Framework) OnMessageCreate(s *discordgo.Session, m *discordgo.MessageCreate)
- func (f *Framework) OnNoPermission(fun fallbackFunction) *Framework
- func (f *Framework) OnNotFound(fun fallbackFunction) *Framework
- func (f *Framework) Prefix(prefix string) *Framework
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Framework ¶
type Framework struct {
// contains filtered or unexported fields
}
Framework determines all properties of your commands
func (*Framework) AddCommand ¶
AddCommand adds a new command
func (*Framework) OnError ¶
OnError will set a default function that will be called when a command raises an error
func (*Framework) OnMessageCreate ¶
func (f *Framework) OnMessageCreate(s *discordgo.Session, m *discordgo.MessageCreate)
OnMessageCreate is the callback used to tie the framework with discordgo
func (*Framework) OnNoPermission ¶
OnNoPermission will set a default function that will be called when a user does not have permission for a command
func (*Framework) OnNotFound ¶
OnNotFound will set a default function that will be called when a command doest not exist
Click to show internal directories.
Click to hide internal directories.