discord

package
v0.0.0-...-ea66291 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BotInstance

type BotInstance struct {
	Melodix *Discord
}

BotInstance represents an instance of a Discord bot.

type Discord

type Discord struct {
	Player         player.IPlayer
	Players        map[string]player.IPlayer
	Session        *discordgo.Session
	GuildID        string
	InstanceActive bool
	// contains filtered or unexported fields
}

Discord represents the Melodix instance for Discord.

func NewDiscord

func NewDiscord(session *discordgo.Session, guildID string) *Discord

NewDiscord creates a new instance of Discord.

func (*Discord) Commands

func (d *Discord) Commands(s *discordgo.Session, m *discordgo.MessageCreate)

Commands handles incoming Discord commands.

func (*Discord) Start

func (d *Discord) Start(guildID string)

Start starts the Discord instance.

Jump to

Keyboard shortcuts

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