core

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PageHTML embed.FS

Functions

func DeleteConfig

func DeleteConfig(config *Config) error

DeleteConfig deletes the passed Config struct via SQLBoiler

func Init

func Init()

Init registers the required guild join & leave functions as well as initialises the web plugin

func SaveConfig

func SaveConfig(config *Config) error

SaveConfig saves the passed Config struct via SQLBoiler

Types

type Config

type Config struct {
	// General
	GuildID     string
	GuildPrefix string
}

Config defines the general struct to pass data to and from the dashboard template/context data

func ConfigFromModel

func ConfigFromModel(m *models.CoreConfig) *Config

ConfigFromModel converts the guild config SQLBoiler model to a Config struct

func GetConfig

func GetConfig(guildID string) *Config

GetConfig returns the current or default guild config as a Config struct

func (*Config) ConfigToSQLModel

func (c *Config) ConfigToSQLModel() *models.CoreConfig

ConfigToSQLModel converts a Config struct to the relevant SQLBoiler model

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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