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);