File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/main/java/net/javadiscord/javabot/systems/help/commands Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 1010import net .javadiscord .javabot .command .interfaces .SlashCommand ;
1111import net .javadiscord .javabot .systems .help .HelpChannelManager ;
1212
13+ import java .util .EnumSet ;
1314import java .util .Map ;
1415import java .util .concurrent .ConcurrentHashMap ;
1516import java .util .concurrent .TimeUnit ;
@@ -54,6 +55,7 @@ public ReplyCallbackAction handleSlashCommandInteraction(SlashCommandInteraction
5455 lastPingTimes .put (event .getMember (), System .currentTimeMillis ());
5556 Role role = channelManager .getConfig ().getHelpPingRole ();
5657 event .getChannel ().sendMessage (role .getAsMention ())
58+ .allowedMentions (EnumSet .of (Message .MentionType .ROLE ))
5759 .setEmbeds (this .buildAuthorEmbed (event .getUser ()))
5860 .queue ();
5961 return event .replyFormat ("Successfully pinged " + role .getAsMention ()).setEphemeral (true );
You can’t perform that action at this time.
0 commit comments