LogoAntiRaid

@discord-types/builders/automoderation/action/action

API reference for @discord-types/builders/automoderation/action/action

@discord-types/builders/automoderation/action/action

Types

Action

Raw Type
type Action = Action.Prototype, & {
	type: apiTypes.AutomoderationActionType,

	metadata: metadata.JSON?
}

Intersection with variants:

Variant 2
PropTypeDescription
type
-
metadata?
-

JSON

Raw Type
type JSON = Action.Prototype.build(nil :: any),

Functions

Action.Prototype.setType

[[ Sets the type of the action. ]]

Function Signature
--[[
	Sets the type of the action.
]]
function Action.Prototype.setType(self: Action, type: apiTypes.AutomoderationActionType) -> Action end

Arguments

type

apiTypes.AutomoderationActionType

Returns

ret1

Action

Action.Prototype.setMetadata

[[ Sets the action metadata. ]]

Function Signature
--[[
	Sets the action metadata.
]]
function Action.Prototype.setMetadata(self: Action, metadata: metadata.JSON) -> Action end

Arguments

metadata

metadata.JSON

Returns

ret1

Action

Action.Prototype.build

[[ Builds the action object. ]]

Function Signature
--[[
	Builds the action object.
]]
function Action.Prototype.build(self: Action) -> JSON end

Returns

ret1

JSON

Action.Interface.new

[[ Responsible for creating a new Action.

```lua

``` ]]

Function Signature
--[[
	Responsible for creating a new Action.

	\`\`\`lua
	
	\`\`\`
]]
function Action.Interface.new(resource: {
		type: apiTypes.AutomoderationActionType?,

		metadata: metadata.JSON?
	}?) -> Action end

Arguments

resource

This field is optional and may not be specified

{type: apiTypes.AutomoderationActionType?, metadata: metadata.JSON?}?

Returns

ret1

Action

Last updated on