discord

package
v0.0.0-...-5fbc0cf Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discord

type Discord struct {
	Session              *discordgo.Session
	Message              *discordgo.MessageCreate
	GuildID              string
	IsInstanceActive     bool
	CommandPrefix        string
	LastChangeAvatarTime time.Time
	RateLimitDuration    time.Duration
}

func NewDiscord

func NewDiscord(session *discordgo.Session) *Discord

func (*Discord) Commands

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

func (*Discord) SetCommandPrefix

func (d *Discord) SetCommandPrefix(prefix string)

func (*Discord) Start

func (d *Discord) Start(guildID string, commandPrefix 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