mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-04-28 00:36:00 +00:00
Increase padding in output to accomodate longer snowflakes
This commit is contained in:
@@ -36,17 +36,19 @@ public class GetChannelsCommand : DiscordCommandBase
|
||||
.ThenBy(c => c.Name)
|
||||
.ToArray();
|
||||
|
||||
var threads = IncludeThreads
|
||||
? (await Discord.GetGuildThreadsAsync(GuildId, cancellationToken))
|
||||
.OrderBy(c => c.Name)
|
||||
.ToArray()
|
||||
: Array.Empty<ChannelThread>();
|
||||
var threads = Array.Empty<ChannelThread>();
|
||||
if (IncludeThreads)
|
||||
{
|
||||
threads = (await Discord.GetGuildThreadsAsync(GuildId, cancellationToken))
|
||||
.OrderBy(c => c.Name)
|
||||
.ToArray();
|
||||
}
|
||||
|
||||
foreach (var channel in channels)
|
||||
{
|
||||
// Channel ID
|
||||
await console.Output.WriteAsync(
|
||||
channel.Id.ToString().PadRight(18, ' ')
|
||||
channel.Id.ToString().PadRight(20, ' ')
|
||||
);
|
||||
|
||||
// Separator
|
||||
@@ -64,7 +66,7 @@ public class GetChannelsCommand : DiscordCommandBase
|
||||
|
||||
// Thread ID
|
||||
await console.Output.WriteAsync(
|
||||
thread.Id.ToString().PadRight(18, ' ')
|
||||
thread.Id.ToString().PadRight(20, ' ')
|
||||
);
|
||||
|
||||
// Separator
|
||||
|
||||
Reference in New Issue
Block a user