Skip to content

Action

Implementation of a discord automod action object as a luau builder.

Properties

The Action instance has no set properties!

Methods

The Action instance has no set methods!

Functions

setType

Action . setType (

     self: Action
     type: apiTypes.ActionTypes
)  -> ()

Sets the type of the action.

setMetadata

Action . setMetadata (

     self: Action
     metadata: metadata.JSON
)  -> ()

Sets the action metadata.

build

Action . build (

     self: Action
)  -> ()

Builds the action object.

new

Action . new (

     resource: {
       type: apiTypes.ActionTypes?,
       metadata: metadata.JSON?,
    }
)  -> ()

Responsible for creating a new Action.