Skip to content

Commit

Permalink
Add required permissions to automod events (#2488)
Browse files Browse the repository at this point in the history
  • Loading branch information
MinnDevelopment committed Jun 26, 2023
1 parent 0a501e2 commit 043b0f5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
Expand Up @@ -34,6 +34,7 @@
*
* <p><b>Requirements</b><br>
* This event requires the {@link GatewayIntent#AUTO_MODERATION_EXECUTION AUTO_MODERATION_EXECUTION} intent to be enabled.
* <br>This event will only fire for guilds where the bot has the {@link net.dv8tion.jda.api.Permission#MANAGE_SERVER MANAGE_SERVER} permission.
* Additionally, access to {@link #getContent()} and {@link #getMatchedContent()} requires the {@link GatewayIntent#MESSAGE_CONTENT MESSAGE_CONTENT} intent to be enabled.
*/
public class AutoModExecutionEvent extends Event implements AutoModExecution
Expand Down
Expand Up @@ -22,11 +22,12 @@
import javax.annotation.Nonnull;

/**
* Indicates that a {@link AutoModRule} was created.
* Indicates that an {@link AutoModRule} was created.
*
* <p><b>Requirements</b><br>
*
* <p>These events require the {@link net.dv8tion.jda.api.requests.GatewayIntent#AUTO_MODERATION_CONFIGURATION AUTO_MODERATION_CONFIGURATION} intent to be enabled.
* <br>This event will only fire for guilds where the bot has the {@link net.dv8tion.jda.api.Permission#MANAGE_SERVER MANAGE_SERVER} permission.
*/
public class AutoModRuleCreateEvent extends GenericAutoModRuleEvent
{
Expand Down
Expand Up @@ -22,11 +22,12 @@
import javax.annotation.Nonnull;

/**
* Indicates that a {@link AutoModRule} was deleted.
* Indicates that an {@link AutoModRule} was deleted.
*
* <p><b>Requirements</b><br>
*
* <p>These events require the {@link net.dv8tion.jda.api.requests.GatewayIntent#AUTO_MODERATION_CONFIGURATION AUTO_MODERATION_CONFIGURATION} intent to be enabled.
* <br>This event will only fire for guilds where the bot has the {@link net.dv8tion.jda.api.Permission#MANAGE_SERVER MANAGE_SERVER} permission.
*/
public class AutoModRuleDeleteEvent extends GenericAutoModRuleEvent
{
Expand Down
Expand Up @@ -22,11 +22,12 @@
import javax.annotation.Nonnull;

/**
* Indicates that a {@link AutoModRule} was updated.
* Indicates that an {@link AutoModRule} was updated.
*
* <p><b>Requirements</b><br>
*
* <p>These events require the {@link net.dv8tion.jda.api.requests.GatewayIntent#AUTO_MODERATION_CONFIGURATION AUTO_MODERATION_CONFIGURATION} intent to be enabled.
* <br>This event will only fire for guilds where the bot has the {@link net.dv8tion.jda.api.Permission#MANAGE_SERVER MANAGE_SERVER} permission.
*/
public class AutoModRuleUpdateEvent extends GenericAutoModRuleEvent
{
Expand Down
Expand Up @@ -23,11 +23,12 @@
import javax.annotation.Nonnull;

/**
* Indicates that na {@link AutoModRule} was created/removed/updated.
* Indicates that an {@link AutoModRule} was created/removed/updated.
*
* <p><b>Requirements</b><br>
*
* <p>These events require the {@link net.dv8tion.jda.api.requests.GatewayIntent#AUTO_MODERATION_CONFIGURATION AUTO_MODERATION_CONFIGURATION} intent to be enabled.
* <br>These events will only fire for guilds where the bot has the {@link net.dv8tion.jda.api.Permission#MANAGE_SERVER MANAGE_SERVER} permission.
*/
public class GenericAutoModRuleEvent extends Event
{
Expand Down

0 comments on commit 043b0f5

Please sign in to comment.