From 865bf024f3e7f3654d6aee287e97c0c4f5accf40 Mon Sep 17 00:00:00 2001 From: Daryl Ronningen Date: Thu, 23 Dec 2021 19:22:34 -0800 Subject: [PATCH] feat: reverse role order to match actual position as shown in official client --- Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index bd21438..e6f1d16 100644 --- a/Program.cs +++ b/Program.cs @@ -268,7 +268,7 @@ namespace chord node.Children.Add(new TreeNode($"{userName}#{users.Discriminator} ({userNick})")); } - rolesDict.TryAdd(roles.Position, node); + rolesDict.TryAdd(Math.Abs(roles.Position - client.GetGuild(currentSelectedGuild).Roles.Count()), node); } }