ActionMetadata
Implementation of the Discord ActionMetadata class in Luau
Summary
Properties
Section titled “Properties”channelId
Section titled “channelId”The ID of the channel to which content should be logged. This is required when the action type is set to SEND_ALERT_MESSAGE.
durationSeconds
Section titled “durationSeconds”The timeout duration in seconds. This is required when the action type is set to TIMEOUT.
customMessage
Section titled “customMessage”A custom message that will be displayed to members when their message is blocked. Maximum 150 characters.
Methods
Section titled “Methods”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 |
Functions
Section titled “Functions”ActionMetadata . new ( actionMetadataData ) -> ActionMetadata
Responsible for constructing this class.
Parameters
| actionMetadataData: AutomoderationActionMetadataObject |
Returns
| ActionMetadata |