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

@@ -1,20 +0,0 @@
namespace Discord
{
public class BulkGuildChannelProperties
{
/// <summary>
/// The id of the channel to apply this position to.
/// </summary>
public ulong Id { get; set; }
/// <summary>
/// The new zero-based position of this channel.
/// </summary>
public int Position { get; set; }
public BulkGuildChannelProperties(ulong id, int position)
{
Id = id;
Position = position;
}
}
}

View File

@@ -0,0 +1,16 @@
namespace Discord
{
public class ReorderChannelProperties
{
/// <summary>The id of the channel to apply this position to.</summary>
public ulong Id { get; }
/// <summary>The new zero-based position of this channel. </summary>
public int Position { get; }
public ReorderChannelProperties(ulong id, int position)
{
Id = id;
Position = position;
}
}
}

View File

@@ -56,9 +56,9 @@ namespace Discord
/// <summary> Modifies this guild's embed. </summary>
Task ModifyEmbedAsync(Action<GuildEmbedProperties> func, RequestOptions options = null);
/// <summary> Bulk modifies the channels of this guild. </summary>
Task ModifyChannelsAsync(IEnumerable<BulkGuildChannelProperties> args, RequestOptions options = null);
Task ReorderChannelsAsync(IEnumerable<ReorderChannelProperties> args, RequestOptions options = null);
/// <summary> Bulk modifies the roles of this guild. </summary>
Task ModifyRolesAsync(IEnumerable<BulkRoleProperties> args, RequestOptions options = null);
Task ReorderRolesAsync(IEnumerable<ReorderRoleProperties> args, RequestOptions options = null);
/// <summary> Leaves this guild. If you are the owner, use Delete instead. </summary>
Task LeaveAsync(RequestOptions options = null);

View File

@@ -1,15 +0,0 @@
namespace Discord
{
public class BulkRoleProperties : RoleProperties
{
/// <summary>
/// The id of the role to be edited
/// </summary>
public ulong Id { get; }
public BulkRoleProperties(ulong id)
{
Id = id;
}
}
}

View File

@@ -0,0 +1,16 @@
namespace Discord
{
public class ReorderRoleProperties
{
/// <summary>The id of the role to be edited</summary>
public ulong Id { get; }
/// <summary>The new zero-based position of the role.</summary>
public int Position { get; }
public ReorderRoleProperties(ulong id, int pos)
{
Id = id;
Position = pos;
}
}
}