pkg

package
v0.0.0-...-094d83a Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	// Valid types:
	// - unmute
	Type string

	GuildID string
	UserID  string
	RoleID  string
}

type Command

type Command interface {
	HasUserIDCooldown(string) bool
	AddUserIDCooldown(string)
	AddGlobalCooldown()
	Run(s *discordgo.Session, m *discordgo.MessageCreate, parts []string) CommandResult
	Description() string
}

Command xd

type CommandResult

type CommandResult int

CommandResult xd

const (
	// CommandResultNoCooldown xd
	CommandResultNoCooldown CommandResult = iota
	// CommandResultUserCooldown xd
	CommandResultUserCooldown
	// CommandResultGlobalCooldown xd
	CommandResultGlobalCooldown
	// CommandResultFullCooldown xd
	CommandResultFullCooldown
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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