You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
disgoman/structs.go

49 lines
1.2 KiB

package disgoman
/* structs.go
* Contains structs used in Disgoman
*
* Disgoman (c) 2020 Dusty.P/dustinpianalto
*/
import "github.com/bwmarrin/discordgo"
// Create a CommandManager which will hold the info and structures required for handling command messages
type CommandManager struct {
Prefixes PrefixesFunc
Owners []string
StatusManager StatusManager
OnErrorFunc OnErrorFunc
Commands map[string]*Command
IgnoreBots bool
CheckPermissions bool
}
// Create a StatusManager which will update the status of the bot
type StatusManager struct {
Values []string
Interval string
}
// Create a Command with all of the info specific to this command
type Command struct {
Name string
Aliases []string
Description string
OwnerOnly bool
Hidden bool
RequiredPermissions Permission
Invoke CommandInvokeFunc
}
// Structure containing all the context that a command needs to run
type Context struct {
Session *discordgo.Session
Channel *discordgo.Channel
Message *discordgo.Message
User *discordgo.User
Guild *discordgo.Guild
Member *discordgo.Member
Invoked string
}