From f8fd981793bda6c402bf87395957a7136ba94f68 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Tue, 16 Apr 2024 16:44:02 +0200 Subject: [PATCH] fix(command): bad display for disabled chans in config show --- commands/config.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/config.go b/commands/config.go index 62b7710..c308f6d 100644 --- a/commands/config.go +++ b/commands/config.go @@ -29,8 +29,10 @@ func ConfigShow(s *discordgo.Session, i *discordgo.InteractionCreate) { l = len(disChans) - 1 chans := "" for i, c := range disChans { - if i != l { + if i == l-1 { chans += fmt.Sprintf("> <#%s>", c) + } else if i != l { + chans += fmt.Sprintf("> <#%s>\n", c) } } if len(chans) == 0 {