$getAutomodRuleId
$getAutomodRuleId will fetch and return the Id of a given automod rule.
Usage
$getAutomodRuleId[guildID;name;force?]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| guildID | number | The ID of the guild where the automod rule exists in. | true |
| name | string, number | The name or ID of the automod rule. | true |
| force? | boolean | Force 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:
1client.command({2 name: "getAutomodRuleId",3 code: `4 $getAutomodRuleId[$guildId;Automod Rule;true]5 `6});