basecommand

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	UserCooldown   int
	GlobalCooldown int

	Description string
	// contains filtered or unexported fields
}

func New

func New() Command

func (*Command) AddCooldown

func (c *Command) AddCooldown(user User)

func (*Command) AddGlobalCooldown

func (c *Command) AddGlobalCooldown()

func (*Command) AddUserIDCooldown

func (c *Command) AddUserIDCooldown(userID string)

func (*Command) HasCooldown

func (c *Command) HasCooldown(user User) bool

func (*Command) HasUserIDCooldown

func (c *Command) HasUserIDCooldown(userID string) bool

type User

type User interface {
	GetID() string
}

Jump to

Keyboard shortcuts

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