Browse Source

Reordering a channel only modifies channels of the same type.

tags/docs-0.9
RogueException 9 years ago
parent
commit
61bcd61ab5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net/DiscordClient.Channels.cs

+ 1
- 1
src/Discord.Net/DiscordClient.Channels.cs View File

@@ -157,7 +157,7 @@ namespace Discord
int oldPos = channel.Position; int oldPos = channel.Position;
int newPos = position.Value; int newPos = position.Value;
int minPos; int minPos;
Channel[] channels = channel.Server.Channels.OrderBy(x => x.Position).ToArray();
Channel[] channels = channel.Server.Channels.Where(x => x.Type == channel.Type).OrderBy(x => x.Position).ToArray();


if (oldPos < newPos) //Moving Down if (oldPos < newPos) //Moving Down
{ {


Loading…
Cancel
Save