Action
Implementation of a discord automod action object as a luau builder.
Summary
Properties
Action.type :: apiTypes.ActionTypesAction.metadata :: Builders.AutoModeration.ActionMetadataProperties
Section titled “Properties” Action.type :: ActionTypes
The type of action to perform when a rule is triggered.
metadata
Section titled “metadata”Additional metadata needed during execution for this specific action type.
Methods
Section titled “Methods”setType
Section titled “setType”Action : setType ( type ) -> Action
Sets the type of the action.
Parameters
| type: ActionTypes |
Returns
| Action |
setMetadata
Section titled “setMetadata”Action : setMetadata ( metadata ) -> Action
Sets the action metadata.
Parameters
| metadata: JSON |
Returns
| Action |
Action : build ( ) -> JSON
Builds the action object.
Returns
| JSON |
Functions
Section titled “Functions”Action . new ( resource ) -> Action
Responsible for creating a new Action.
Parameters
| resource: { type: apiTypes.ActionTypes?, metadata: metadata.JSON?, } |
Returns
| Action |