Archived
0
0
Fork 0

fix: channel names using category names instead

This commit is contained in:
Daryl Ronningen 2021-12-17 19:40:09 -07:00
parent 1d940b0f7d
commit 1b71d51629
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B

View file

@ -159,7 +159,7 @@ namespace chord
{ {
if (channel.GetType().Name == "SocketTextChannel") if (channel.GetType().Name == "SocketTextChannel")
{ {
var channelName = Regex.Replace(categories.Name, @"[^\u0000-\u007F]+", string.Empty); var channelName = Regex.Replace(channel.Name, @"[^\u0000-\u007F]+", string.Empty);
var channelNode = new TreeNode(channelName); var channelNode = new TreeNode(channelName);
channelNode.Tag = new { Id = channel.Id }; channelNode.Tag = new { Id = channel.Id };