ActionMetadata
Implementation of a discord automoderation action metadata object as a luau builder.
Properties
The ActionMetadata instance has no set properties!
Methods
The ActionMetadata instance has no set methods!
Functions
setChannelId
ActionMetadata . setChannelId () -> ()
self: ActionMetadata
channelId: apiTypes.Snowflake
Sets the ID of the channel where the action should be taken.
setDurationSeconds
ActionMetadata . setDurationSeconds () -> ()
self: ActionMetadata
durationSeconds: number
Sets the duration of the action in seconds.
setCustomMessage
ActionMetadata . setCustomMessage () -> ()
self: ActionMetadata
customMessage: string
Sets a custom message to be sent with the action.
build
ActionMetadata . build () -> ()
self: ActionMetadata
Builds the action metadata object.
new
ActionMetadata . new ( ) -> ()
Responsible for creating a new ActionMetadata.
local metadata = ActionMetadata.new({ channelId = "123456789", durationSeconds = 300, customMessage = "Action taken due to rule violation"})