diff options
| author | Anhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me> | 2024-04-16 16:44:02 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me> | 2024-04-16 16:44:02 +0200 |
| commit | f8fd981793bda6c402bf87395957a7136ba94f68 (patch) | |
| tree | 04f0b4d875f7d96e3c0b3fbf0f4b5f1cb0ffc172 | |
| parent | 6c2436093b0632097b23d75fb29216e02ff26581 (diff) | |
fix(command): bad display for disabled chans in config show
| -rw-r--r-- | commands/config.go | 4 |
1 files changed, 3 insertions, 1 deletions
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 { |
