Cleaned up and fixed several reorder issues.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
16
src/Discord.Net.Core/Entities/Roles/ReorderRoleProperties.cs
Normal file
16
src/Discord.Net.Core/Entities/Roles/ReorderRoleProperties.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user