Skip to content

$getAutomodRule

$getAutomodRule will fetch and return the selected automod rule of the specified guild.

Usage

$getAutomodRule[guildID;name?;option?]

Parameters

FieldTypeDescriptionRequired
guildIDnumberThe ID of the guild where the automod rule exists in.true
name?string, numberThe name or ID of the automod rule.false
option?stringThe type of the function response.false

Example(s)

1
client.command({
2
name: "getAutomodRule",
3
code: `
4
$getAutomodRule[$guildID;name]
5
`
6
});