From ffdd33f10ce777fce904d6accfcce70f38bc756f Mon Sep 17 00:00:00 2001 From: Tommy Parnell Date: Sat, 20 Jul 2019 11:06:40 -0400 Subject: [PATCH] fix interface --- Main.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Main.cs b/Main.cs index 014ba28..ba51c98 100644 --- a/Main.cs +++ b/Main.cs @@ -16,7 +16,7 @@ namespace bundlephobia { class SlackPost { - public Dictionary attachments { get; set; } + public IEnumerable attachments { get; set; } [JsonProperty("unfurl_links")] public bool unfurlLinks { get; set; } = true; [JsonProperty("unfurl_media")] @@ -50,9 +50,9 @@ namespace bundlephobia var version = respData.Keys.OrderByDescending(a => a).First(); var payload = new SlackPost() { - attachments = new Dictionary() + attachments = new List() { - ["text"] = $"https://bundlephobia.com/result?p={text}@{version}" + new { text = $"https://bundlephobia.com/result?p={text}@{version}" }, } }; await Client.PostAsJsonAsync(responseUrl, payload);