From 59f311d1db0676873902d4c1bca615642d04a9d0 Mon Sep 17 00:00:00 2001 From: Luca Date: Wed, 11 Sep 2024 21:39:13 +0200 Subject: [PATCH] Add message content intent --- DiscordBot/OpenShockDiscordBot.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/DiscordBot/OpenShockDiscordBot.cs b/DiscordBot/OpenShockDiscordBot.cs index f7824a3..df8a821 100644 --- a/DiscordBot/OpenShockDiscordBot.cs +++ b/DiscordBot/OpenShockDiscordBot.cs @@ -71,7 +71,11 @@ public static async Task Main(string[] args) services.AddSingleton(); - services.AddSingleton(new DiscordSocketClient()); + services.AddSingleton(new DiscordSocketClient(new DiscordSocketConfig + { + GatewayIntents = GatewayIntents.AllUnprivileged | + GatewayIntents.MessageContent + })); services.AddSingleton(x => new InteractionService(x.GetRequiredService())); services.AddSingleton();