From 9789af77473c98d5b190031cd9ba70047a0433f1 Mon Sep 17 00:00:00 2001 From: Daniel Mason Date: Tue, 11 Feb 2025 20:42:35 +1300 Subject: [PATCH] rtfm --- src/internal/bot/commands.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/internal/bot/commands.go b/src/internal/bot/commands.go index 12b728f..fdc105e 100644 --- a/src/internal/bot/commands.go +++ b/src/internal/bot/commands.go @@ -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, }, }) }