Added intents
This commit is contained in:
parent
c3d2b215d5
commit
de8f2a9356
|
|
@ -7,6 +7,7 @@ import com.alttd.permissions.PermissionManager;
|
|||
import com.alttd.util.Logger;
|
||||
import net.dv8tion.jda.api.JDA;
|
||||
import net.dv8tion.jda.api.JDABuilder;
|
||||
import net.dv8tion.jda.api.requests.GatewayIntent;
|
||||
|
||||
import javax.security.auth.login.LoginException;
|
||||
import java.io.File;
|
||||
|
|
@ -32,7 +33,18 @@ public class AltitudeBot {
|
|||
Logger.info("Starting bot...");
|
||||
initConfigs();
|
||||
try {
|
||||
jda = JDABuilder.createDefault(SettingsConfig.TOKEN).build();
|
||||
jda = JDABuilder.createDefault(SettingsConfig.TOKEN,
|
||||
GatewayIntent.DIRECT_MESSAGE_REACTIONS,
|
||||
GatewayIntent.DIRECT_MESSAGE_TYPING,
|
||||
GatewayIntent.DIRECT_MESSAGES,
|
||||
GatewayIntent.GUILD_BANS,
|
||||
GatewayIntent.GUILD_EMOJIS,
|
||||
GatewayIntent.GUILD_MEMBERS,
|
||||
GatewayIntent.GUILD_MESSAGE_REACTIONS,
|
||||
GatewayIntent.GUILD_MESSAGE_TYPING,
|
||||
GatewayIntent.GUILD_MESSAGES,
|
||||
GatewayIntent.GUILD_PRESENCES,
|
||||
GatewayIntent.GUILD_WEBHOOKS).build();
|
||||
} catch (LoginException e) {
|
||||
Logger.info("Unable to log in, shutting down (check token in settings.yml).");
|
||||
exit(1);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user