Skip to content

Commit

Permalink
Notify user to enable MESSAGE_CONTENT intent
Browse files Browse the repository at this point in the history
  • Loading branch information
Shimell committed Jan 22, 2024
1 parent 53a66fc commit ddbf910
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/uk/co/angrybee/joe/events/ShutdownEvents.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public void onShutdown(ShutdownEvent shutdownEvent)
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)
Expand All @@ -22,7 +22,7 @@ private void CheckIntents(CloseCode closeCode)
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");
}
}
Expand Down

0 comments on commit ddbf910

Please sign in to comment.