structs

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BotConfig

type BotConfig struct {
	Auth struct {
		Token       string `toml:"token"`
		DatabaseURL string `toml:"database_url"`
		BoltPath    string `toml:"bolt_path"`
	} `toml:"auth"`
	Bot struct {
		Prefixes     []string `toml:"prefixes"`
		BotOwners    []string `toml:"bot_owners"`
		Invite       string   `toml:"invite"`
		AllowedBots  []string `toml:"allowed_bots"`
		DMWebhook    string   `toml:"dm_webhook"`
		BlockedUsers []string `toml:"blocked_users"`
		LogWebhook   string   `toml:"log_webhook"`
		CustomStatus struct {
			Type   string `toml:"type"`
			Status string `toml:"status"`
		} `toml:"custom_status"`
	} `toml:"bot"`
	Logging struct {
		LogLevel string `toml:"log_level"`
		DebugURL string `toml:"debug_url"`
		InfoURL  string `toml:"info_url"`
		WarnURL  string `toml:"warn_url"`
		ErrorURL string `toml:"error_url"`
		PanicURL string `toml:"panic_url"`
	} `toml:"logging"`
}

BotConfig holds the bot's configuration

type GatekeeperSettings

type GatekeeperSettings struct {
	GatekeeperRoles   []string
	MemberRoles       []string
	GatekeeperChannel string
	GatekeeperMessage string
	WelcomeChannel    string
	WelcomeMessage    string
}

GatekeeperSettings holds the gatekeeper settings

type GuildSettings

type GuildSettings struct {
	Prefix     string
	Starboard  StarboardSettings
	Moderation ModSettings
	Gatekeeper GatekeeperSettings
	YAG        YAGImport
}

GuildSettings holds a guild's configuration

type ModSettings

type ModSettings struct {
	ModRoles    []string
	HelperRoles []string
	ModLog      string
	MuteRole    string
	PauseRole   string
}

ModSettings holds the mod settings

type StarboardSettings

type StarboardSettings struct {
	StarboardID      string
	ReactLimit       int
	Emoji            string
	SenderCanReact   bool
	ReactToStarboard bool
}

StarboardSettings holds the starboard settings

type YAGImport added in v1.0.0

type YAGImport struct {
	Channel string
	Enabled bool
}

YAGImport holds the settings for importing mod logs from YAGPDB

Jump to

Keyboard shortcuts

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