mirror of
https://github.com/NoiTheCat/BirthdayBot.git
synced 2024-11-24 09:24:12 +00:00
Clarify client options, add gateway intents
This commit is contained in:
parent
e1a4dab746
commit
0eb63c26f5
1 changed files with 6 additions and 5 deletions
|
@ -108,13 +108,14 @@ namespace BirthdayBot
|
|||
|
||||
var clientConf = new DiscordSocketConfig()
|
||||
{
|
||||
LogLevel = LogSeverity.Debug, // TODO adjust after testing
|
||||
AlwaysDownloadUsers = true, // TODO set to false when more stable to do so
|
||||
DefaultRetryMode = Discord.RetryMode.RetryRatelimit,
|
||||
MessageCacheSize = 0,
|
||||
ShardId = shardId,
|
||||
TotalShards = Config.ShardCount,
|
||||
ExclusiveBulkDelete = true // we don't use these, but it's best to configure here
|
||||
LogLevel = LogSeverity.Info,
|
||||
DefaultRetryMode = RetryMode.RetryRatelimit,
|
||||
MessageCacheSize = 0, // not needed at all
|
||||
ExclusiveBulkDelete = true, // not relevant, but this is configured to skip the warning
|
||||
AlwaysDownloadUsers = true, // TODO set to false when more stable to do so
|
||||
GatewayIntents = GatewayIntents.Guilds | GatewayIntents.GuildMembers | GatewayIntents.GuildMessages
|
||||
};
|
||||
var newClient = new DiscordSocketClient(clientConf);
|
||||
newInstance = new ShardInstance(this, newClient, _dispatchCommands);
|
||||
|
|
Loading…
Reference in a new issue