Reordering a channel only modifies channels of the same type.

This commit is contained in:
RogueException
2015-11-22 04:39:11 -04:00
parent efb8179f3f
commit 61bcd61ab5

View File

@@ -157,7 +157,7 @@ namespace Discord
int oldPos = channel.Position;
int newPos = position.Value;
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
{