mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-28 13:44:12 -04:00
Short-circuit GetGuildThreadsAsync(...)
for DMs
This commit is contained in:
parent
47588296a9
commit
041086267c
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue