From 3da8efae492415e45469590a5415081554eebd2f Mon Sep 17 00:00:00 2001 From: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Sat, 7 Aug 2021 11:40:06 -0400 Subject: [PATCH] Fix incorrect parameter name for allowGroupMentions --- .../api/v2/events/discord/DiscordMessageEvent.java | 4 ++-- .../essentialsx/api/v2/services/discord/DiscordService.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/EssentialsDiscord/src/main/java/net/essentialsx/api/v2/events/discord/DiscordMessageEvent.java b/EssentialsDiscord/src/main/java/net/essentialsx/api/v2/events/discord/DiscordMessageEvent.java index 23996efff..c9f5f4765 100644 --- a/EssentialsDiscord/src/main/java/net/essentialsx/api/v2/events/discord/DiscordMessageEvent.java +++ b/EssentialsDiscord/src/main/java/net/essentialsx/api/v2/events/discord/DiscordMessageEvent.java @@ -25,7 +25,7 @@ public class DiscordMessageEvent extends Event implements Cancellable { /** * @param type The message type/destination of this event. * @param message The raw message content of this event. - * @param allowGroupMentions Whether or not the message should allow the pinging of roles, users, or emotes. + * @param allowGroupMentions Whether the message should allow the pinging of roles, @here, or @everyone. */ public DiscordMessageEvent(final MessageType type, final String message, final boolean allowGroupMentions) { this(type, message, allowGroupMentions, null, null, null); @@ -34,7 +34,7 @@ public class DiscordMessageEvent extends Event implements Cancellable { /** * @param type The message type/destination of this event. * @param message The raw message content of this event. - * @param allowGroupMentions Whether or not the message should allow the pinging of roles, users, or emotes. + * @param allowGroupMentions Whether the message should allow the pinging of roles, @here, or @everyone. * @param avatarUrl The avatar URL to use for this message (if supported) or null to use the default bot avatar. * @param name The name to use for this message (if supported) or null to use the default bot name. * @param uuid The UUID of the player which caused this event or null if this wasn't a player triggered event. diff --git a/EssentialsDiscord/src/main/java/net/essentialsx/api/v2/services/discord/DiscordService.java b/EssentialsDiscord/src/main/java/net/essentialsx/api/v2/services/discord/DiscordService.java index 8a86994a8..b0da13c18 100644 --- a/EssentialsDiscord/src/main/java/net/essentialsx/api/v2/services/discord/DiscordService.java +++ b/EssentialsDiscord/src/main/java/net/essentialsx/api/v2/services/discord/DiscordService.java @@ -10,7 +10,7 @@ public interface DiscordService { * Sends a message to a message type channel. * @param type The message type/destination of this message. * @param message The exact message to be sent. - * @param allowGroupMentions Whether or not the message should allow the pinging of roles, users, or emotes. + * @param allowGroupMentions Whether the message should allow the pinging of roles, @here, or @everyone. */ void sendMessage(final MessageType type, final String message, final boolean allowGroupMentions);