Notify user to enable MESSAGE_CONTENT intent

This commit is contained in:
Joe 2024-01-22 17:58:52 +00:00
parent 53a66fc228
commit ddbf910f87

View File

@ -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");
}
}