Skip to content

Commit

Permalink
Only allow webhook to ping users
Browse files Browse the repository at this point in the history
  • Loading branch information
PotatoPresident committed Jun 12, 2021
1 parent 02f17c8 commit d14f22e
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

import club.minnced.discord.webhook.WebhookClient;
import club.minnced.discord.webhook.WebhookClientBuilder;
import club.minnced.discord.webhook.send.WebhookEmbed;
import club.minnced.discord.webhook.send.WebhookEmbedBuilder;
import club.minnced.discord.webhook.send.WebhookMessage;
import club.minnced.discord.webhook.send.WebhookMessageBuilder;
import club.minnced.discord.webhook.send.*;
import net.dv8tion.jda.api.JDA;
import net.dv8tion.jda.api.JDABuilder;
import net.minecraft.advancement.Advancement;
Expand Down Expand Up @@ -41,6 +38,7 @@ public Discord(Config config, MinecraftServer server) throws LoginException {
.protocols(Collections.singletonList(Protocol.HTTP_1_1))
.build());
builder.setDaemon(true);
builder.setAllowedMentions(AllowedMentions.none().withParseUsers(true));
this.webhook = builder.build();
this.name = config.getName();
this.logo = config.getLogo();
Expand Down

0 comments on commit d14f22e

Please sign in to comment.