Cleaned up and fixed several reorder issues.

This commit is contained in:
RogueException
2017-03-20 23:48:41 -03:00
parent 8d435e994b
commit 20f7ba431f
13 changed files with 66 additions and 78 deletions

View File

@@ -7,9 +7,9 @@ namespace Discord.API.Rest
internal class ModifyGuildChannelsParams
{
[JsonProperty("id")]
public ulong Id { get; set; }
public ulong Id { get; }
[JsonProperty("position")]
public int Position { get; set; }
public int Position { get; }
public ModifyGuildChannelsParams(ulong id, int position)
{

View File

@@ -10,8 +10,6 @@ namespace Discord.API.Rest
public Optional<string> Name { get; set; }
[JsonProperty("permissions")]
public Optional<ulong> Permissions { get; set; }
[JsonProperty("position")]
public Optional<int> Position { get; set; }
[JsonProperty("color")]
public Optional<uint> Color { get; set; }
[JsonProperty("hoist")]

View File

@@ -8,10 +8,13 @@ namespace Discord.API.Rest
{
[JsonProperty("id")]
public ulong Id { get; }
[JsonProperty("position")]
public int Position { get; }
public ModifyGuildRolesParams(ulong id)
public ModifyGuildRolesParams(ulong id, int position)
{
Id = id;
Position = position;
}
}
}