Package discord4j.core.object.automod
Class AutoModRuleAction
java.lang.Object
discord4j.core.object.automod.AutoModRuleAction
- All Implemented Interfaces:
DiscordObject
An Auto Moderation Rule Action
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
An Auto Moderation Rule Action MetaDatastatic enum
Represents an Action Type of AutoMod Action. -
Constructor Summary
ConstructorDescriptionAutoModRuleAction
(GatewayDiscordClient gateway, discord4j.discordjson.json.AutoModActionData data) -
Method Summary
Modifier and TypeMethodDescriptionReturns theGatewayDiscordClient
that created this object.discord4j.discordjson.json.AutoModActionData
getData()
Gets the MetaData of the action if set.getType()
Gets the type of this action.
-
Constructor Details
-
AutoModRuleAction
public AutoModRuleAction(GatewayDiscordClient gateway, discord4j.discordjson.json.AutoModActionData data)
-
-
Method Details
-
getData
public discord4j.discordjson.json.AutoModActionData getData() -
getType
Gets the type of this action.- Returns:
- A
AutoModRuleAction.Type
-
getMetadata
Gets the MetaData of the action if set.- Returns:
- the MetaData of the action if available.
-
getClient
Description copied from interface:DiscordObject
Returns theGatewayDiscordClient
that created this object. Methods in it are exclusively based on the entity cache orStore
in use. Refer to callinggetClient().rest()
to access aDiscordClient
that is capable of requesting entities directly from the REST API.- Specified by:
getClient
in interfaceDiscordObject
- Returns:
- The
GatewayDiscordClient
associated to this object.
-