This commit is contained in:
Daniel Mason 2025-02-11 20:42:35 +13:00
parent 544fc580b2
commit 9789af7747
Signed by: idanoo
GPG key ID: 387387CDBC02F132

View file

@ -68,7 +68,7 @@ func showTopEmojis(s *discordgo.Session, i *discordgo.InteractionCreate) {
users := []string{}
msg += fmt.Sprintf("%s: %d", k, v)
for sk, sv := range topUsers {
users = append(users, fmt.Sprintf("<@%s>: %d", sk, sv))
users = append(users, fmt.Sprintf("`@%s`: %d", sk, sv))
}
msg += " (" + strings.Join(users, ", ") + ")\n"
}
@ -76,7 +76,7 @@ func showTopEmojis(s *discordgo.Session, i *discordgo.InteractionCreate) {
s.InteractionRespond(i.Interaction, &discordgo.InteractionResponse{
Type: discordgo.InteractionResponseChannelMessageWithSource,
Data: &discordgo.InteractionResponseData{
Content: "```\n" + msg + "\n```",
Content: msg,
},
})
}
@ -98,7 +98,7 @@ func showTopUsers(s *discordgo.Session, i *discordgo.InteractionCreate) {
}
users := []string{}
msg += fmt.Sprintf("<@%s>: %d", k, v)
msg += fmt.Sprintf("`@%s`: %d", k, v)
for sk, sv := range topUsers {
users = append(users, fmt.Sprintf("%s: %d", sk, sv))
}
@ -108,7 +108,7 @@ func showTopUsers(s *discordgo.Session, i *discordgo.InteractionCreate) {
s.InteractionRespond(i.Interaction, &discordgo.InteractionResponse{
Type: discordgo.InteractionResponseChannelMessageWithSource,
Data: &discordgo.InteractionResponseData{
Content: "```\n" + msg + "\n```",
Content: msg,
},
})
}