Resolve Issue #1188 (Allow Users to specify position when creating a new channel) (#1196)

* Added ability to specify position when creating a channel

* Adjusted categories to include guildproperties and allow specifying position when creating channel categories

* fixed unimplemented methods (for CreateCategoryChannelAsync) and added appropriate documentation
This commit is contained in:
Nathan Solomon
2018-11-27 16:16:32 -06:00
committed by Christopher F
parent 10233f3a9a
commit a64ab6025b
5 changed files with 26 additions and 12 deletions

View File

@@ -12,6 +12,8 @@ namespace Discord.API.Rest
public ChannelType Type { get; }
[JsonProperty("parent_id")]
public Optional<ulong?> CategoryId { get; set; }
[JsonProperty("position")]
public Optional<int> Position { get; set; }
//Text channels
[JsonProperty("topic")]