Uncommented something that shouldnt have been

This commit is contained in:
DroppingAnvil 2019-09-29 13:36:37 -05:00
parent 58b25c726f
commit 8b70947d03
1 changed files with 4 additions and 4 deletions

View File

@ -58,10 +58,10 @@ public class FactionChatHandler extends ListenerAdapter {
if (textChannel == null) { if (textChannel == null) {
return; return;
} }
//if (!textChannel.getGuild().getSelfMember().hasPermission(textChannel, Permission.MANAGE_WEBHOOKS)) { if (!textChannel.getGuild().getSelfMember().hasPermission(textChannel, Permission.MANAGE_WEBHOOKS)) {
//textChannel.sendMessage("Missing `Manage Webhooks` permission in this channel").queue(); textChannel.sendMessage("Missing `Manage Webhooks` permission in this channel").queue();
//return; return;
//} }
Webhook webhook = (textChannel.getWebhooks().complete()).stream().filter(w -> w.getName().equals(Conf.webhookName)).findAny().orElse(null); Webhook webhook = (textChannel.getWebhooks().complete()).stream().filter(w -> w.getName().equals(Conf.webhookName)).findAny().orElse(null);
WebhookClient webhookClient; WebhookClient webhookClient;
if (webhook != null) { if (webhook != null) {