mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-05-22 08:45:08 +00:00
Refine ReadLinesAsync: pattern matching, rename, cancellation token
Agent-Logs-Url: https://github.com/Tyrrrz/DiscordChatExporter/sessions/e4a61491-645a-418c-91cd-74e835baaf44 Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
316e8c6ea8
commit
f656234c38
@@ -34,7 +34,7 @@ public partial class ExportChannelsCommand : ExportCommandBase
|
||||
var channelIds = new List<Snowflake>(ChannelIds);
|
||||
if (channelIds.Count == 0 && console.IsInputRedirected)
|
||||
{
|
||||
await foreach (var line in console.Input.ReadAllLinesAsync())
|
||||
await foreach (var line in console.Input.ReadLinesAsync(cancellationToken))
|
||||
channelIds.Add(Snowflake.Parse(line));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user