diff --git a/src/main/java/cc/fascinated/bat/Emojis.java b/src/main/java/cc/fascinated/bat/Emojis.java index 1fdae07..1469a22 100644 --- a/src/main/java/cc/fascinated/bat/Emojis.java +++ b/src/main/java/cc/fascinated/bat/Emojis.java @@ -19,14 +19,6 @@ public class Emojis { public static final Emoji SKIP_EMOJI; public static final Emoji HOME_EMOJI; - /** - * Presence Status Emojis - */ - public static final Emoji ONLINE_EMOJI; - public static final Emoji IDLE_EMOJI; - public static final Emoji DND_EMOJI; - public static final Emoji OFFLINE_EMOJI; - static { log.info("Loading emojis..."); JDA jda = DiscordService.JDA; @@ -34,10 +26,6 @@ public class Emojis { CHECK_MARK_EMOJI = jda.getEmojiById("1258922852669853817"); CROSS_MARK_EMOJI = jda.getEmojiById("1256634487429922897"); SAD_FACE_EMOJI = jda.getEmojiById("1256636078258131055"); - ONLINE_EMOJI = jda.getEmojiById("1256662465668710430"); - IDLE_EMOJI = jda.getEmojiById("1256662632203685991"); - DND_EMOJI = jda.getEmojiById("1256662572933845032"); - OFFLINE_EMOJI = jda.getEmojiById("1256662679402053662"); PAUSE_EMOJI = Emoji.fromUnicode("⏸"); PLAY_EMOJI = Emoji.fromUnicode("▶"); SKIP_EMOJI = Emoji.fromUnicode("⏭"); diff --git a/src/main/java/cc/fascinated/bat/common/EmbedUtils.java b/src/main/java/cc/fascinated/bat/common/EmbedUtils.java index 09b5bfa..56f36bb 100644 --- a/src/main/java/cc/fascinated/bat/common/EmbedUtils.java +++ b/src/main/java/cc/fascinated/bat/common/EmbedUtils.java @@ -1,6 +1,7 @@ package cc.fascinated.bat.common; import cc.fascinated.bat.config.Config; +import io.sentry.Sentry; import lombok.experimental.UtilityClass; import net.dv8tion.jda.api.EmbedBuilder; import net.dv8tion.jda.api.entities.channel.concrete.TextChannel; @@ -68,6 +69,7 @@ public class EmbedUtils { if (channel != null) { channel.sendMessageEmbeds(embed.build()).queue(); } + Sentry.captureException(ex); // Capture the exception return embed; } } diff --git a/src/main/java/cc/fascinated/bat/exception/spotify/SpotifyTokenRefreshException.java b/src/main/java/cc/fascinated/bat/exception/spotify/SpotifyTokenRefreshException.java deleted file mode 100644 index e363d4c..0000000 --- a/src/main/java/cc/fascinated/bat/exception/spotify/SpotifyTokenRefreshException.java +++ /dev/null @@ -1,13 +0,0 @@ -package cc.fascinated.bat.exception.spotify; - -import lombok.experimental.StandardException; - -/** - * @author Fascinated (fascinated7) - */ -@StandardException -public class SpotifyTokenRefreshException extends RuntimeException { - public SpotifyTokenRefreshException(String message) { - super(message); - } -} \ No newline at end of file