Package discord4j.core.object.automod
Class AutoModRuleAction.AutoModRuleActionMetaData
java.lang.Object
discord4j.core.object.automod.AutoModRuleAction.AutoModRuleActionMetaData
- All Implemented Interfaces:
DiscordObject
- Enclosing class:
- AutoModRuleAction
public static class AutoModRuleAction.AutoModRuleActionMetaData
extends Object
implements DiscordObject
An Auto Moderation Rule Action MetaData
- See Also:
-
Constructor Summary
ConstructorDescriptionAutoModRuleActionMetaData
(GatewayDiscordClient gateway, discord4j.discordjson.json.AutoModActionMetaData data) -
Method Summary
Modifier and TypeMethodDescriptionGets the channelĀ“s id to which user content should be logged.Returns theGatewayDiscordClient
that created this object.Gets the custom message to show when the action is executed.Gets the timeout duration.
-
Constructor Details
-
AutoModRuleActionMetaData
public AutoModRuleActionMetaData(GatewayDiscordClient gateway, discord4j.discordjson.json.AutoModActionMetaData data)
-
-
Method Details
-
getChannelId
Gets the channelĀ“s id to which user content should be logged.
Note: This is mostly present the action is of typeAutoModRuleAction.Type.SEND_ALERT_MESSAGE
.- Returns:
- The ID of the channel involved, if present.
-
getDurationTimeout
Gets the timeout duration.
Note: This is mostly present the action is of typeAutoModRuleAction.Type.TIMEOUT
.- Returns:
- The duration in seconds, if present.
-
getCustomMessage
Gets the custom message to show when the action is executed.
Note: This is mostly present the action is of typeAutoModRuleAction.Type.BLOCK_MESSAGE
.- Returns:
- The custom message, if present.
-
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.
-