Skip to content

Commit

Permalink
Add message content intent
Browse files Browse the repository at this point in the history
  • Loading branch information
LucHeart committed Sep 11, 2024
1 parent 0361594 commit 59f311d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion DiscordBot/OpenShockDiscordBot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ public static async Task Main(string[] args)

services.AddSingleton<IUserRepository, UserRepository>();

services.AddSingleton(new DiscordSocketClient());
services.AddSingleton<DiscordSocketClient>(new DiscordSocketClient(new DiscordSocketConfig
{
GatewayIntents = GatewayIntents.AllUnprivileged |
GatewayIntents.MessageContent
}));
services.AddSingleton<InteractionService>(x =>
new InteractionService(x.GetRequiredService<DiscordSocketClient>()));
services.AddSingleton<InteractionHandler>();
Expand Down

0 comments on commit 59f311d

Please sign in to comment.