Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ABCRic committed Dec 22, 2018
1 parent 585c4a2 commit b8db037
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,14 @@
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.16.18</version>
<version>1.18.4</version>
<scope>provided</scope>
</dependency>
<!--Discord4j-->
<dependency>
<groupId>com.github.austinv11</groupId>
<artifactId>Discord4j</artifactId>
<version>2.9.3</version>
<version>2.10.1</version>
<classifier>shaded</classifier>
</dependency>
<!--Logback-->
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/eu/manuelgu/discordmc/DiscordCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public boolean onCommand(CommandSender cs, Command cmd, String label, String[] a
}

String name = lookupUser[0].getName();
Optional<String> game = lookupUser[0].getPresence().getPlayingText();
Optional<String> game = lookupUser[0].getPresence().getText();
boolean isBot = lookupUser[0].isBot();
String id = lookupUser[0].getStringID();
List<IRole> roles = lookupUser[0].getRolesForGuild(DiscordMC.getClient().getGuilds().get(0));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
import sx.blah.discord.api.events.EventSubscriber;
import sx.blah.discord.handle.impl.events.ReadyEvent;
import sx.blah.discord.handle.impl.events.guild.channel.message.MessageReceivedEvent;
import sx.blah.discord.handle.obj.ActivityType;
import sx.blah.discord.handle.obj.IRole;
import sx.blah.discord.handle.obj.IUser;
import sx.blah.discord.handle.obj.StatusType;

import java.util.List;
import java.util.function.Function;
Expand Down Expand Up @@ -96,7 +98,7 @@ public void userChat(MessageReceivedEvent event) {
@EventSubscriber
public void onReady(ReadyEvent event) {
// Set game to Minecraft
DiscordMC.getClient().changePlayingText("Minecraft");
DiscordMC.getClient().changePresence(StatusType.ONLINE, ActivityType.PLAYING, "Minecraft");

// Check for file encoder (emoji-related)
switch (System.getProperty("file.encoding")) {
Expand Down

0 comments on commit b8db037

Please sign in to comment.