Skip to content

Commit

Permalink
Fix incorrect parameter name for allowGroupMentions
Browse files Browse the repository at this point in the history
  • Loading branch information
JRoy committed Aug 8, 2021
1 parent b84207f commit 3da8efa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -34,7 +34,7 @@ public DiscordMessageEvent(final MessageType type, final String message, final b
/**
* @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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 3da8efa

Please # to comment.