catch exceptions
Some checks failed
Deploy to Dokku / docker (ubuntu-latest) (push) Failing after 42s
Some checks failed
Deploy to Dokku / docker (ubuntu-latest) (push) Failing after 42s
This commit is contained in:
parent
45460f8b90
commit
bd340448a1
@ -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("⏭");
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user