config

package
v0.0.0-...-f0c0f71 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigTokenError = &ConfigError{"token", "Token is required."}

Functions

This section is empty.

Types

type ConfigError

type ConfigError struct {
	Flag    string
	Message string
}

func (*ConfigError) Error

func (ge *ConfigError) Error() string

type ConnectionConfig

type ConnectionConfig struct {
	// Bot Token
	Token string `json:"token"`
	// Bot Intents
	Intents discordgo.Intent `json:"intents"`
	// Bot Onwer ID
	OwnerID string `json:"owner"`
	// Bot Prefix
	Prefix string `json:"prefix"`
}

ConnectionConfig to connect the bot and other features.

var Config ConnectionConfig

Jump to

Keyboard shortcuts

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