From 6e0329a02d06ff79da27b4804c6c9181f79c9322 Mon Sep 17 00:00:00 2001 From: IS4 Date: Sun, 12 Sep 2021 08:06:21 +0200 Subject: [PATCH] Property name: auto_archive_duration (#137) According to [Discord Developer Portal](https://discord.com/developers/docs/resources/channel#start-thread-with-message), the property should be named `auto_archive_duration`, not just `duration`. --- src/Discord.Net.Rest/API/Rest/StartThreadParams.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Discord.Net.Rest/API/Rest/StartThreadParams.cs b/src/Discord.Net.Rest/API/Rest/StartThreadParams.cs index c41398d93..ed3701cad 100644 --- a/src/Discord.Net.Rest/API/Rest/StartThreadParams.cs +++ b/src/Discord.Net.Rest/API/Rest/StartThreadParams.cs @@ -12,7 +12,7 @@ namespace Discord.API.Rest [JsonProperty("name")] public string Name { get; set; } - [JsonProperty("duration")] + [JsonProperty("auto_archive_duration")] public ThreadArchiveDuration Duration { get; set; } [JsonProperty("type")]