Browse Source

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`.
pull/1923/head
IS4 GitHub 3 years ago
parent
commit
6e0329a02d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Rest/API/Rest/StartThreadParams.cs

+ 1
- 1
src/Discord.Net.Rest/API/Rest/StartThreadParams.cs View File

@@ -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")]


Loading…
Cancel
Save