mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-11-27 17:23:00 +00:00
Fix aliases appending
Add 3 dots on appending to merge 2 slices.
This commit is contained in:
parent
23d97044ec
commit
93fbfd98d0
|
@ -396,7 +396,7 @@ func (sub *Subcommand) AddAliases(commandName string, aliases ...string) {
|
||||||
command := sub.FindCommand(commandName)
|
command := sub.FindCommand(commandName)
|
||||||
|
|
||||||
// Write new listing of aliases
|
// Write new listing of aliases
|
||||||
command.Aliases = append(command.Aliases, aliases)
|
command.Aliases = append(command.Aliases, aliases...)
|
||||||
}
|
}
|
||||||
|
|
||||||
func lowerFirstLetter(name string) string {
|
func lowerFirstLetter(name string) string {
|
||||||
|
|
Loading…
Reference in a new issue