Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAdmin ¶
CheckAdmin checks if the user attempting to run an admin command is an admin
func RegisterCommands ¶
func RegisterCommands()
RegisterCommands registers the commands on start up.
func RunCommand ¶
func RunCommand(input string, s *discordgo.Session, m *discordgo.MessageCreate)
RunCommand runs a specified command.
Types ¶
type Command ¶
type Command struct { Name string Command func(s *discordgo.Session, m *discordgo.MessageCreate) Command1 func(s *discordgo.Session, m *discordgo.MessageCreate, arg1 string) Command2 func(s *discordgo.Session, m *discordgo.MessageCreate, arg1 string, arg2 string) Admin bool Args int Desc string }
Command is a struct containing fields that hold command information.
Click to show internal directories.
Click to hide internal directories.