fix(command): bad display for disabled chans in config show

This commit is contained in:
Anhgelus Morhtuuzh 2024-04-16 16:44:02 +02:00
parent 6c2436093b
commit f8fd981793
No known key found for this signature in database
GPG key ID: CF4550297832A29F

View file

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