Skip to main content

handleAutoModerationRuleCreate

@discordeno/botDocs


Documentation / @discordeno/bot / handleAutoModerationRuleCreate

Function: handleAutoModerationRuleCreate()

handleAutoModerationRuleCreate(bot, data, _shardId): Promise<void>

Requires the MANAGE_GUILD permission.

Parameters

bot: Bot<TransformersDesiredProperties, RemoveKey>

data: DiscordGatewayPayload

_shardId: number

Returns

Promise<void>

Defined in

packages/bot/src/handlers/guilds/automod/AUTO_MODERATION_RULE_CREATE.ts:5