Class GenericAutoModRuleEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.automod.GenericAutoModRuleEvent
- All Implemented Interfaces:
GenericEvent
- Direct Known Subclasses:
AutoModRuleCreateEvent
,AutoModRuleDeleteEvent
,AutoModRuleUpdateEvent
Indicates that an
AutoModRule
was created/removed/updated.
Requirements
These events require the AUTO_MODERATION_CONFIGURATION
intent to be enabled.
These events will only fire for guilds where the bot has the MANAGE_SERVER
permission.
-
Constructor Summary
-
Method Summary
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getRawData, getResponseNumber, toString
-
Constructor Details
-
GenericAutoModRuleEvent
-
-
Method Details
-
getRule
TheAutoModRule
that was created/removed/updated.- Returns:
- The
AutoModRule
-