Fix thread member download on create (#2072)

This commit is contained in:
Quin Lynch
2022-01-30 03:09:41 -04:00
committed by GitHub
parent 82f3879aaf
commit 09eb9facba
2 changed files with 5 additions and 1 deletions

View File

@@ -2913,6 +2913,9 @@ namespace Discord.WebSocket
}
}
internal bool HasGatewayIntent(GatewayIntents intents)
=> _gatewayIntents.HasFlag(intents);
private async Task GuildAvailableAsync(SocketGuild guild)
{
if (!guild.IsConnected)

View File

@@ -119,6 +119,7 @@ namespace Discord.WebSocket
var thread = (SocketThreadChannel)Guild.AddOrUpdateChannel(Discord.State, model);
if(Discord.AlwaysDownloadUsers && Discord.HasGatewayIntent(GatewayIntents.GuildMembers))
await thread.DownloadUsersAsync();
return thread;