mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-14 07:43:31 -07:00
Short-circuit GetGuildThreadsAsync(...) for DMs
This commit is contained in:
parent
47588296a9
commit
041086267c
|
|
@ -263,6 +263,9 @@ public class DiscordClient
|
|||
bool includeArchived = false,
|
||||
[EnumeratorCancellation] CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (guildId == Guild.DirectMessages.Id)
|
||||
yield break;
|
||||
|
||||
var tokenKind = _resolvedTokenKind ??= await GetTokenKindAsync(cancellationToken);
|
||||
var channels = await GetGuildChannelsAsync(guildId, cancellationToken);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue