| Author | SHA1 | Message | Date |
|---|---|---|---|
|
|
8430564851 | Fix thread member download on create | 3 years ago |
| @@ -2913,6 +2913,9 @@ namespace Discord.WebSocket | |||||
| } | } | ||||
| } | } | ||||
| internal bool HasGatewayIntent(GatewayIntents intents) | |||||
| => _gatewayIntents.HasFlag(intents); | |||||
| private async Task GuildAvailableAsync(SocketGuild guild) | private async Task GuildAvailableAsync(SocketGuild guild) | ||||
| { | { | ||||
| if (!guild.IsConnected) | if (!guild.IsConnected) | ||||
| @@ -119,7 +119,8 @@ namespace Discord.WebSocket | |||||
| var thread = (SocketThreadChannel)Guild.AddOrUpdateChannel(Discord.State, model); | var thread = (SocketThreadChannel)Guild.AddOrUpdateChannel(Discord.State, model); | ||||
| await thread.DownloadUsersAsync(); | |||||
| if(Discord.AlwaysDownloadUsers && Discord.HasGatewayIntent(GatewayIntents.GuildMembers)) | |||||
| await thread.DownloadUsersAsync(); | |||||
| return thread; | return thread; | ||||
| } | } | ||||