Skip to main content

DiscordAutoModerationActionMetadata

@discordeno/bot


Documentation / @discordeno/bot / DiscordAutoModerationActionMetadata

Interface: DiscordAutoModerationActionMetadata

Defined in: packages/types/dist/types/discord/autoModeration.d.ts:136

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

Properties

channel_id?

optional channel_id: string

Defined in: packages/types/dist/types/discord/autoModeration.d.ts:143

The id of channel to which user content should be logged.

Remarks

Only for actions of type AutoModerationActionType.SendAlertMessage.


custom_message?

optional custom_message: string

Defined in: packages/types/dist/types/discord/autoModeration.d.ts:163

Additional explanation that will be shown to members whenever their message is blocked.

This may set to undefined if no custom message is provided.

Remarks

Only for actions of type AutoModerationActionType.BlockMessage.

Maximum of 150 characters.


duration_seconds?

optional duration_seconds: number

Defined in: packages/types/dist/types/discord/autoModeration.d.ts:152

Timeout duration in seconds.

Remarks

Only for actions of type AutoModerationActionType.Timeout.

Maximum of 2419200 seconds (4 weeks).