Documentation ¶
Index ¶
Constants ¶
View Source
const Blue = "\033[34m" // Database logs
View Source
const Green = "\033[32m" // General System Info
View Source
const Red = "\033[31m" // Error
For colors in logging output
View Source
const Yellow = "\033[33m" // Command Info
Variables ¶
View Source
var AuthorizedIDs []string
View Source
var EmojiIDs map[string]string
View Source
var Emojis map[string]string
View Source
var HomeGuild *discord.Guild
View Source
var HomeGuildID string
Functions ¶
func InitialiseConstants ¶
Types ¶
type Command ¶
type Command interface { HandleCommand(*discord.Session, *discord.MessageCreate, []string) error Desc() string Help() string Init(...interface{}) Command }
Interface for callable commands
type HandlerStruct ¶
type HandlerStruct struct { MessageComponents map[string]func(*discord.Interaction) error // Handlers for InteractionCreate events ModalSubmit map[string]func(*discord.Interaction) error // Handlers for InteractionCreate events }
var Handlers HandlerStruct
Click to show internal directories.
Click to hide internal directories.