[Docs] Update samples to use MessageContent intent & update v2 => v3 guide (#2471)
This commit is contained in:
@@ -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>()
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.2" />
|
||||
<PackageReference Include="Discord.Net.Commands" Version="3.6.1" />
|
||||
<PackageReference Include="Discord.Net.Websocket" Version="3.6.1" />
|
||||
<PackageReference Include="Discord.Net.Commands" Version="3.8.1" />
|
||||
<PackageReference Include="Discord.Net.Websocket" Version="3.8.1" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user