1
0
Fork 0
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:
ks129 2020-05-25 07:55:30 +03:00 committed by diamondburned
parent 23d97044ec
commit 93fbfd98d0

View file

@ -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 {