Skip to content

ActionMetadata

Implementation of the Discord ActionMetadata class in Luau

https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-action-object-action-metadata

ActionMetadata.channelId  :: string

The ID of the channel to which content should be logged. This is required when the action type is set to SEND_ALERT_MESSAGE.

ActionMetadata.durationSeconds  :: number

The timeout duration in seconds. This is required when the action type is set to TIMEOUT.

ActionMetadata.customMessage  :: string?

A custom message that will be displayed to members when their message is blocked. Maximum 150 characters.

ActionMetadata : sync ( actionMetadataData )  -> ()

Responsible for syncing data to this action metadata object. This is typically called by the API when this object is created or updated.

Parameters

actionMetadataData: AutomoderationActionMetadataObject
ActionMetadata . new ( actionMetadataData )  -> ActionMetadata

Responsible for constructing this class.

Parameters

actionMetadataData: AutomoderationActionMetadataObject

Returns

ActionMetadata