[Docs] Update samples to use MessageContent intent & update v2 => v3 guide (#2471)

This commit is contained in:
Misha133
2022-09-25 23:27:14 +03:00
committed by GitHub
parent bc89d3c485
commit a4d34f6947
9 changed files with 22 additions and 9 deletions

View File

@@ -60,6 +60,10 @@ namespace TextCommandFramework
private ServiceProvider ConfigureServices()
{
return new ServiceCollection()
.AddSingleton(new DiscordSocketConfig
{
GatewayIntents = GatewayIntents.AllUnprivileged | GatewayIntents.MessageContent
})
.AddSingleton<DiscordSocketClient>()
.AddSingleton<CommandService>()
.AddSingleton<CommandHandlingService>()