Skip to main content

DiscordenoAutoModerationActionMetadata

Documentation


Documentation / @discordeno/types / DiscordenoAutoModerationActionMetadata

Interface: DiscordenoAutoModerationActionMetadata

Defined in: discordeno/autoModeration.ts:27

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

Properties

channelId?

optional channelId?: BigString

Defined in: discordeno/autoModeration.ts:34

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

Remarks

Only for actions of type AutoModerationActionType.SendAlertMessage.


customMessage?

optional customMessage?: string

Defined in: discordeno/autoModeration.ts:54

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.


durationSeconds?

optional durationSeconds?: number

Defined in: discordeno/autoModeration.ts:43

Timeout duration in seconds.

Remarks

Only for actions of type AutoModerationActionType.Timeout.

Maximum of 2419200 seconds (4 weeks).