mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-04-21 21:47:33 +00:00
Show threads in GUI at the bottom of the list, in specialized groups
Related to #1119
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user