From ddbf910f872ed2069fe1037cd69d3cd8aaf1c792 Mon Sep 17 00:00:00 2001 From: Joe <49585339+Shimeo98@users.noreply.github.com> Date: Mon, 22 Jan 2024 17:58:52 +0000 Subject: [PATCH] Notify user to enable MESSAGE_CONTENT intent --- src/main/java/uk/co/angrybee/joe/events/ShutdownEvents.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/uk/co/angrybee/joe/events/ShutdownEvents.java b/src/main/java/uk/co/angrybee/joe/events/ShutdownEvents.java index 06936df..792b999 100644 --- a/src/main/java/uk/co/angrybee/joe/events/ShutdownEvents.java +++ b/src/main/java/uk/co/angrybee/joe/events/ShutdownEvents.java @@ -13,7 +13,7 @@ public class ShutdownEvents extends ListenerAdapter CheckIntents(shutdownEvent.getCloseCode()); } - // Check for the 'SERVER MEMBERS INTENT' and inform users if not enabled + // Check for the 'SERVER MEMBERS INTENT' & 'MESSAGE_CONTENT' and inform users if not enabled private void CheckIntents(CloseCode closeCode) { if(closeCode == null) @@ -22,7 +22,7 @@ public class ShutdownEvents extends ListenerAdapter if(closeCode == CloseCode.DISALLOWED_INTENTS) { DiscordWhitelister.getPluginLogger().severe("\u001B[31m" + "Cannot connect as this bot is not eligible to request the privileged intent 'GUILD_MEMBERS'" + "\u001B[0m"); - DiscordWhitelister.getPluginLogger().severe( "\u001B[31m" + "To fix this, please enable 'SERVER MEMBERS INTENT' located " + + DiscordWhitelister.getPluginLogger().severe( "\u001B[31m" + "To fix this, please enable 'SERVER MEMBERS INTENT' & 'MESSAGE_CONTENT' located " + "at https://discord.com/developers/applications -> the application you're using to run this bot -> the button called 'bot' on the left" + "\u001B[0m"); } }