Uncommented something that shouldnt have been
This commit is contained in:
parent
58b25c726f
commit
8b70947d03
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user