Show threads in GUI at the bottom of the list, in specialized groups

Related to #1119
This commit is contained in:
Tyrrrz
2023-08-28 21:31:51 +03:00
parent f1c094ac14
commit 5f6e51f6fb
11 changed files with 49 additions and 13 deletions

View File

@@ -184,7 +184,7 @@ public abstract class ExportCommandBase : DiscordCommandBase
try
{
await progressContext.StartTaskAsync(
$"{channel.Category} / {channel.Name}",
$"{channel.ParentNameWithFallback} / {channel.Name}",
async progress =>
{
var guild = await Discord.GetGuildAsync(
@@ -246,7 +246,7 @@ public abstract class ExportCommandBase : DiscordCommandBase
foreach (var (channel, error) in errorsByChannel)
{
await console.Error.WriteAsync($"{channel.Category} / {channel.Name}: ");
await console.Error.WriteAsync($"{channel.ParentNameWithFallback} / {channel.Name}: ");
using (console.WithForegroundColor(ConsoleColor.Red))
await console.Error.WriteLineAsync(error);

View File

@@ -77,7 +77,7 @@ public class GetChannelsCommand : DiscordCommandBase
// Channel category / name
using (console.WithForegroundColor(ConsoleColor.White))
await console.Output.WriteLineAsync($"{channel.Category} / {channel.Name}");
await console.Output.WriteLineAsync($"{channel.ParentNameWithFallback} / {channel.Name}");
var channelThreads = threads.Where(t => t.Parent?.Id == channel.Id).ToArray();
var channelThreadIdMaxLength = channelThreads

View File

@@ -44,7 +44,7 @@ public class GetDirectChannelsCommand : DiscordCommandBase
// Channel category / name
using (console.WithForegroundColor(ConsoleColor.White))
await console.Output.WriteLineAsync($"{channel.Category} / {channel.Name}");
await console.Output.WriteLineAsync($"{channel.ParentNameWithFallback} / {channel.Name}");
}
}
}