This repository has been archived on 2019-06-23. You can view files and clone it, but cannot push or open issues or pull requests.
mumbledj/interfaces/command.go

19 lines
401 B
Go
Raw Permalink Normal View History

2016-06-21 02:16:05 +02:00
/*
* MumbleDJ
* By Matthieu Grieger
* interfaces/command.go
* Copyright (c) 2016 Matthieu Grieger (MIT License)
*/
package interfaces
import "github.com/layeh/gumble/gumble"
// Command is an interface that all commands must implement.
type Command interface {
Aliases() []string
Description() string
IsAdminCommand() bool
Execute(user *gumble.User, args ...string) (string, bool, error)
}