Skip to content

$getAutomodRuleId

$getAutomodRuleId will fetch and return the Id of a given automod rule.

Usage

$getAutomodRuleId[guildID;name;force?]

Parameters

FieldTypeDescriptionRequired
guildIDnumberThe ID of the guild where the automod rule exists in.true
namestring, numberThe name or ID of the automod rule.true
force?booleanForce fetch the guild’s automod rules.false

Example(s)

This will return the Id of the given automod rule while force fetching all guild automod rules:

1
client.command({
2
name: "getAutomodRuleId",
3
code: `
4
$getAutomodRuleId[$guildId;Automod Rule;true]
5
`
6
});