Class AbstractTriggerConfig<B extends AbstractTriggerConfig<B>>
java.lang.Object
net.dv8tion.jda.api.entities.automod.build.AbstractTriggerConfig<B>
- Type Parameters:
B
- The builder type
- All Implemented Interfaces:
TriggerConfig
,SerializableData
- Direct Known Subclasses:
AbstractKeywordTriggerConfig
,AntiSpamTriggerConfig
,MentionSpamTriggerConfig
public class AbstractTriggerConfig<B extends AbstractTriggerConfig<B>>
extends Object
implements TriggerConfig
Abstract base class for all trigger configurations.
-
Method Summary
Modifier and TypeMethodDescriptiongetType()
The type of trigger this config applies to.toData()
SerializedDataObject
for this object.
-
Method Details
-
getType
The type of trigger this config applies to.- Specified by:
getType
in interfaceTriggerConfig
- Returns:
AutoModTriggerType
-
toData
Description copied from interface:SerializableData
SerializedDataObject
for this object.- Specified by:
toData
in interfaceSerializableData
- Returns:
DataObject
-