# Regex censoring

GET https://liege.dev/api/regex?guildid={guildid}

curl https://api.liege.dev/regex?guildid={guildid} \
    --header "Authorization: Bearer BEARER_TOKEN"
[
    {
        "statement": "regexstatment1",
        "action": 0
    },
    {
        "statement": "regexstatement2",
        "action": 2
    }
]

POST https://liege.dev/api/regex

curl https://api.liege.dev/regex \
    --header "Authorization: Bearer BEARER_TOKEN" \
    --header "Content-Type: application/json" \
    --request POST \
    --data '{ "guildid": "000000000000000000", "statement": "regexstatement1", "action": 2 }'
Name Type Description
guildid string The Discord ID of the guild the regex statement is to be added to.
statement string The regex statement to be added to the provided guild.
action int The action to be taken automatically upon a regex statement being identified.
# AutoAction

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

{
    "guildid": "000000000000000000",
    "statement": "regexstatement1",
    "action": 2
}

DELETE https://liege.dev/api/regex

curl https://api.liege.dev/regex \
    --header "Authorization: Bearer BEARER_TOKEN" \
    --header "Content-Type: application/json" \
    --request DELETE \
    --data '{ "guildid": "000000000000000000", "statement": "regexstatement1" }'
Name Type Description
guildid string The Discord ID of the guild the censor(s) is/are to be added to.
statement string The regex statement to be deleted from the provided guild.
# Example

{
    "guildid": "000000000000000000",
    "statement": "regexstatement1"
}