From f64ab7f0181ac0a8ecd09aee2b9538138b08cf02 Mon Sep 17 00:00:00 2001 From: Michael McCarty Date: Tue, 14 Jul 2026 19:40:44 -0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8feat:=20includeDisplay=20component=20a?= =?UTF-8?q?nd=20remove=20duplicate=20content=20field?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/leaderboard/leaderboard_post.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/leaderboard/leaderboard_post.go b/src/leaderboard/leaderboard_post.go index 351f7361..4f11ed8c 100644 --- a/src/leaderboard/leaderboard_post.go +++ b/src/leaderboard/leaderboard_post.go @@ -362,6 +362,7 @@ func postSingleMetric(s *discordgo.Session, cfg LBConfig, lbType, snapDate strin var components []discordgo.MessageComponent if usePagination { components = []discordgo.MessageComponent{ + &discordgo.TextDisplay{Content: text}, discordgo.ActionsRow{ Components: []discordgo.MessageComponent{ discordgo.Button{ @@ -475,6 +476,7 @@ func HandleLBPageButton(s *discordgo.Session, i *discordgo.InteractionCreate) { text := blocks[0] components := []discordgo.MessageComponent{ + &discordgo.TextDisplay{Content: text}, discordgo.ActionsRow{ Components: []discordgo.MessageComponent{ discordgo.Button{ @@ -496,7 +498,6 @@ func HandleLBPageButton(s *discordgo.Session, i *discordgo.InteractionCreate) { _ = s.InteractionRespond(i.Interaction, &discordgo.InteractionResponse{ Type: discordgo.InteractionResponseUpdateMessage, Data: &discordgo.InteractionResponseData{ - Content: text, Components: components, Flags: discordgo.MessageFlagsIsComponentsV2, },