Skip to content

Commit

Permalink
Fixed gatewayintent for direct messages and guild messages
Browse files Browse the repository at this point in the history
  • Loading branch information
HMJosh committed Dec 15, 2020
1 parent 7abea0c commit aefb685
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dependency-reduced-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>me.Joshb</groupId>
<artifactId>DiscordBotAPI</artifactId>
<version>1.0.0</version>
<version>1.0.5</version>
<build>
<sourceDirectory>src/main/java</sourceDirectory>
<resources>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>me.Joshb</groupId>
<artifactId>DiscordBotAPI</artifactId>
<version>1.0.4</version>
<version>1.0.5</version>

<build>
<sourceDirectory>src/main/java</sourceDirectory>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ public void onEnable(){
cm.initializeSubCommands();
ProxyServer.getInstance().getPluginManager().registerCommand(this, cm);

JDABuilder builder = JDABuilder.create(Config.getInstance().getConfig().getString("Bot.Token"), GatewayIntent.GUILD_MEMBERS, GatewayIntent.GUILD_MESSAGE_REACTIONS);
JDABuilder builder = JDABuilder.create(me.joshb.discordbotapi.server.config.Config.getInstance().getConfig().getString("Bot.Token"),
GatewayIntent.GUILD_MEMBERS,
GatewayIntent.GUILD_MESSAGE_REACTIONS,
GatewayIntent.DIRECT_MESSAGES,
GatewayIntent.GUILD_MESSAGES);

try {
jda = builder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ public void onEnable() {
return;
}

JDABuilder builder = JDABuilder.create(Config.getInstance().getConfig().getString("Bot.Token"), GatewayIntent.GUILD_MEMBERS, GatewayIntent.GUILD_MESSAGE_REACTIONS);
JDABuilder builder = JDABuilder.create(Config.getInstance().getConfig().getString("Bot.Token"),
GatewayIntent.GUILD_MEMBERS,
GatewayIntent.GUILD_MESSAGE_REACTIONS,
GatewayIntent.DIRECT_MESSAGES,
GatewayIntent.GUILD_MESSAGES);

try {
jda = builder.build();
Expand Down
2 changes: 1 addition & 1 deletion target/classes/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: DiscordBotAPI
version: 1.0.0
version: 1.0.5
main: me.joshb.discordbotapi.server.DiscordBotAPI
author: Joshb_
commands:
Expand Down
4 changes: 2 additions & 2 deletions target/maven-archiver/pom.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Generated by Maven
#Mon Dec 07 15:30:21 EST 2020
version=1.0.0
#Mon Dec 14 22:55:18 EST 2020
version=1.0.5
groupId=me.Joshb
artifactId=DiscordBotAPI

0 comments on commit aefb685

Please sign in to comment.