discord

package
v0.0.0-...-7857e79 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePathIfNotExists

func CreatePathIfNotExists(path string) error

Types

type Discord

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

func NewDiscord

func NewDiscord(session *discordgo.Session) *Discord

func (*Discord) Commands

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

func (*Discord) Start

func (d *Discord) Start(guildID string)

func (*Discord) Stop

func (d *Discord) Stop()

Jump to

Keyboard shortcuts

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