discord

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	// contains filtered or unexported fields
}

Bot represents the Discord bot instance

func NewBot

func NewBot(config *Config) (*Bot, error)

NewBot creates a new Discord bot instance

func (*Bot) Start

func (b *Bot) Start() error

Start starts the Discord bot

func (*Bot) Stop

func (b *Bot) Stop() error

Stop stops the Discord bot

type Config

type Config struct {
	DiscordToken string `yaml:"token"`
	APIURL       string
	APISecret    string
	Guilds       []GuildConfig `yaml:"guilds"`
}

type GuildConfig added in v1.0.16

type GuildConfig struct {
	ID     string `yaml:"id"`
	RoleID string `yaml:"role_id"`
}

Config holds the Discord bot configuration

Jump to

Keyboard shortcuts

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