discord

package
v0.0.0-...-620d27a Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 15 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 {
	DiceRoller *Discord
}

BotInstance represents an instance of a Discord bot.

type Discord

type Discord struct {
	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