mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-01-08 13:07:43 +00:00
Bot: Proper unknown command error punctuations
This commit is contained in:
parent
ee9d6b0d4d
commit
af63bb2e66
|
@ -29,10 +29,10 @@ func (err *ErrUnknownCommand) Error() string {
|
||||||
var UnknownCommandString = func(err *ErrUnknownCommand) string {
|
var UnknownCommandString = func(err *ErrUnknownCommand) string {
|
||||||
// Subcommand check.
|
// Subcommand check.
|
||||||
if err.Subcmd.StructName == "" || len(err.Parts) < 2 {
|
if err.Subcmd.StructName == "" || len(err.Parts) < 2 {
|
||||||
return "unknown command: " + err.Parts[0]
|
return "unknown command: " + err.Parts[0] + "."
|
||||||
}
|
}
|
||||||
|
|
||||||
return fmt.Sprintf("unknown %s subcommand: %s", err.Parts[0], err.Parts[1])
|
return fmt.Sprintf("unknown %s subcommand: %s.", err.Parts[0], err.Parts[1])
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
Loading…
Reference in a new issue