From 41fbbe2385a7dbba4e59bd8f30d7107e5e628dbf Mon Sep 17 00:00:00 2001 From: sciwhiz12 Date: Mon, 28 Dec 2020 04:14:54 +0800 Subject: [PATCH] Stop mention in greet command from pinging --- .../main/java/sciwhiz12/janitor/commands/misc/HelloCommand.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/java/sciwhiz12/janitor/commands/misc/HelloCommand.java b/core/src/main/java/sciwhiz12/janitor/commands/misc/HelloCommand.java index b1e618d..42ddd83 100644 --- a/core/src/main/java/sciwhiz12/janitor/commands/misc/HelloCommand.java +++ b/core/src/main/java/sciwhiz12/janitor/commands/misc/HelloCommand.java @@ -10,6 +10,7 @@ import sciwhiz12.janitor.api.command.CommandRegistry; import sciwhiz12.janitor.api.command.arguments.GuildMemberArgument; import sciwhiz12.janitor.utils.Util; +import java.util.Collections; import java.util.List; import static sciwhiz12.janitor.api.Logging.JANITOR; @@ -35,6 +36,7 @@ public class HelloCommand extends BaseCommand { if (memberList.size() == 1) { final Member member = memberList.get(0); ctx.getSource().getChannel().sendMessage("Hello " + member.getAsMention() + "!") + .allowedMentions(Collections.emptyList()) .reference(ctx.getSource().getMessage()) .flatMap(message -> getBot().getReactions().newMessage(message)