From 6e46b39ba8b6c29b78f400d731dba684a9ddc294 Mon Sep 17 00:00:00 2001 From: hirenko-v <132065511+hirenko-v@users.noreply.github.com> Date: Thu, 19 Sep 2024 17:59:53 +0300 Subject: [PATCH] test --- cmd/msg/main.go | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/cmd/msg/main.go b/cmd/msg/main.go index cf59a7b..581ed9b 100644 --- a/cmd/msg/main.go +++ b/cmd/msg/main.go @@ -11,7 +11,7 @@ import ( ) const ( - description = "Msg sends an example interactive messages." + description = "Msg sends an example interactive message." pluginName = "msg" ) @@ -91,15 +91,6 @@ func initialMessages() executor.ExecuteOutput { return executor.ExecuteOutput{ Message: api.Message{ - BaseBody: api.Body{ - TextFields: api.TextFields{ - { - Label: "Select an option from the first dropdown", - Value: "Showcases interactive message capabilities.", - Markdown: true, - }, - }, - }, Sections: []api.Section{ { Selects: api.Selects{ @@ -138,13 +129,9 @@ func updateDropdowns(selections map[string]string) executor.ExecuteOutput { fullCommand := buildFullCommand(selections) return executor.ExecuteOutput{ Message: api.Message{ - BaseBody: api.Body{ - TextFields: api.TextFields{ - { - Label: "Full command", - Value: fullCommand, - Markdown: true, - }, + Context: api.ContextItems{ + { + Text: fullCommand, }, }, Sections: []api.Section{