Temporarily disabled unsafe operations
This commit is contained in:
parent
a98ef34290
commit
a4a0f6a634
@ -8,14 +8,9 @@ package dev.salmonllama.fsbot.utilities;
|
|||||||
import dev.salmonllama.fsbot.config.BotConfig;
|
import dev.salmonllama.fsbot.config.BotConfig;
|
||||||
import dev.salmonllama.fsbot.guthix.CommandContext;
|
import dev.salmonllama.fsbot.guthix.CommandContext;
|
||||||
import org.javacord.api.entity.message.embed.EmbedBuilder;
|
import org.javacord.api.entity.message.embed.EmbedBuilder;
|
||||||
import org.javacord.api.util.logging.ExceptionLogger;
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
|
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.function.Consumer;
|
|
||||||
import java.util.function.Function;
|
|
||||||
|
|
||||||
public class DiscordUtilities {
|
public class DiscordUtilities {
|
||||||
public static void handleException(Exception e, CommandContext ctx) {
|
public static void handleException(Exception e, CommandContext ctx) {
|
||||||
@ -37,7 +32,7 @@ public class DiscordUtilities {
|
|||||||
ctx.getApi().getTextChannelById(BotConfig.ACTIVITY_LOG).ifPresent(channel -> channel.sendMessage(embed));
|
ctx.getApi().getTextChannelById(BotConfig.ACTIVITY_LOG).ifPresent(channel -> channel.sendMessage(embed));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void report(Class<? extends Throwable>... throwable) {
|
// public static void report(Class<? extends Throwable>... throwable) {
|
||||||
System.out.println(Arrays.stream(throwable));
|
// System.out.println(Arrays.stream(throwable));
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user