constants

package
v0.0.0-...-2911f81 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

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

func InitialiseConstants(bot *discord.Session)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL