Documentation ¶
Index ¶
Constants ¶
View Source
const ( MemberRoleID = "416353375647432706" AcademyRoleID = "488400983836196874" OfficerRoleID = "382256632882659338" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler func(msg string, s *discordgo.Session, m *discordgo.MessageCreate, db *sql.DB, guildID string, cmds []Command)
Handler of message sent events. TODO: Jesus past me, this can't be the best way to do it
type Help ¶
type Help struct { // Summary of what the command does in a short sentence. Summary string // DetailedDescription of what the command does. DetailedDescription string // Syntax shows how to use the command. // Leave this empty if there is no particular functionality in the main command, but instead in the subcommands. // Do not include a prefix (e.g. an exclamation mark). Syntax string // Example of how to use the command. // Leave this empty if there is no particular functionality in the main command, but instead in the subcommands. // Do not include a prefix (e.g. an exclamation mark). Example string // SubCommands contains the callphrase mapped to their own Help object. SubCommands map[string]Help // TODO: Finish implementing this, consider using a slice instead }
Help with information about what the Command does and how to use it.
type Permission ¶
type Permission int
const ( All Permission = iota Members Officers )
func (Permission) Authorized ¶
func (p Permission) Authorized(user discordgo.Member) bool
Authorized returns whether the member is authorized to use the command.
Click to show internal directories.
Click to hide internal directories.