mirror of
https://github.com/Shimeo98/DiscordWhitelisterSpigot.git
synced 2024-11-24 11:38:39 +01:00
Notify user to enable MESSAGE_CONTENT intent
This commit is contained in:
parent
53a66fc228
commit
ddbf910f87
@ -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");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user