From 93fbfd98d0f78e154df7742d490894edd9d7374d Mon Sep 17 00:00:00 2001 From: ks129 <45097959+ks129@users.noreply.github.com> Date: Mon, 25 May 2020 07:55:30 +0300 Subject: [PATCH] Fix aliases appending Add 3 dots on appending to merge 2 slices. --- bot/subcommand.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/subcommand.go b/bot/subcommand.go index 479cfcf..c974313 100644 --- a/bot/subcommand.go +++ b/bot/subcommand.go @@ -396,7 +396,7 @@ func (sub *Subcommand) AddAliases(commandName string, aliases ...string) { command := sub.FindCommand(commandName) // Write new listing of aliases - command.Aliases = append(command.Aliases, aliases) + command.Aliases = append(command.Aliases, aliases...) } func lowerFirstLetter(name string) string {