Fix incorrect parameter name for allowGroupMentions

This commit is contained in:
Josh Roy 2021-08-07 11:40:06 -04:00
parent b84207f955
commit 3da8efae49
2 changed files with 3 additions and 3 deletions

View File

@ -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.

View File

@ -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);