# Guild settings

GET https://liege.dev/api/settings/setting?guildid={guildid}&setting={setting}

curl https://api.liege.dev/settings/setting?guildid={guildid}&setting={setting} \
    --header "Authorization: Bearer BEARER_TOKEN" \
Name Type Description
guildid string The Discord guild ID of the guild to be modified.
setting int The setting to be retrieved in integer form.
# Setting

Setting Value
Spam 0
Scam 1
Invite 2
DOX 3
AI 4
Raid 5
# Example

{
    "guildid": "000000000000000000",
    "setting": "0"
}
{
    "isEnabled": true,
    "action": 1,
    "slowmodeInterval": 3
}
# action is AutoAction

Action Value
Delete 0
Warn 1
Timeout30m 2
Timeout6h 3
TimeoutIndefinitely 4
Kick 5
Ban7d 6
BanPern 7

PATCH https://liege.dev/api/settings/setting

curl https://api.liege.dev/settings/setting \
    --header "Authorization: Bearer BEARER_TOKEN" \
    --header "Content-Type: application/json" \
    --request PATCH \
    --data '{ "guildid": "000000000000000000", "setting": 1, "config": { "isEnabled": true, "action": 1, "slowmodeInterval": 3 } }'
Name Type Description
guildid string The Discord guild ID of the guild to be modified.
setting int The setting to be modified in integer form.
config config The new settings that are to be set in the provided guild. See the config object below.
# config object

Name Type Description
isEnabled bool Set to true to enable the provided setting; false otherwise.
action int The action that should be automaticall taken when the setting is triggered.
slowmodeInterval int The slowmode interval to be set in the current channel upon the setting being triggered.

# Setting

Setting Value
Spam 0
Scam 1
Invite 2
DOX 3
AI 4
Raid 5
# action is AutoAction

Action Value
Delete 0
Warn 1
Timeout30m 2
Timeout6h 3
TimeoutIndefinitely 4
Kick 5
Ban7d 6
BanPern 7

# Example

{
    "guildid": "000000000000000000",
    "setting": 1,
    "config": {
        "isEnabled": true,
        "action": 1,
        "slowmodeInterval": 3
    }
}