This repository has been archived on 2022-10-02. You can view files and clone it, but cannot push or open issues or pull requests.
2020-06-27 16:48:33 +00:00
|
|
|
package discord
|
|
|
|
|
2020-07-19 10:16:02 +00:00
|
|
|
import (
|
|
|
|
"github.com/nicksnyder/go-i18n/v2/i18n"
|
|
|
|
"github.com/tribalwarshelp/dcbot/models"
|
|
|
|
)
|
|
|
|
|
2020-06-27 16:48:33 +00:00
|
|
|
type Command string
|
|
|
|
|
|
|
|
func (cmd Command) String() string {
|
|
|
|
return string(cmd)
|
|
|
|
}
|
|
|
|
|
2020-10-17 08:27:58 +00:00
|
|
|
func (cmd Command) WithPrefix(prefix string) Command {
|
|
|
|
return Command(prefix + cmd.String())
|
2020-06-27 16:48:33 +00:00
|
|
|
}
|
2020-07-19 10:16:02 +00:00
|
|
|
|
|
|
|
type commandCtx struct {
|
|
|
|
server *models.Server
|
|
|
|
localizer *i18n.Localizer
|
|
|
|
}
|