Skip to content

Commit babbfc2

Browse files
fixed /help-ping not actually pinging the role
1 parent 19b7d5d commit babbfc2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/net/javadiscord/javabot/systems/help/commands/HelpPingCommand.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import net.javadiscord.javabot.command.interfaces.SlashCommand;
1111
import net.javadiscord.javabot.systems.help.HelpChannelManager;
1212

13+
import java.util.EnumSet;
1314
import java.util.Map;
1415
import java.util.concurrent.ConcurrentHashMap;
1516
import 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);

0 commit comments

Comments
 (0)