# Censoring

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

curl https://api.liege.dev/censor?guildid={guildid} \
    --header "Authorization: Bearer BEARER_TOKEN"
[
    {
        "term": "badword1",
        "action": 0
    },
    {
        "term": "badword2",
        "action": 1
    },
    {
        "term": "badword3",
        "action": 2
    }
]

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

curl https://api.liege.dev/censor \
    --header "Authorization: Bearer BEARER_TOKEN" \
    --header "Content-Type: application/json" \
    --request POST \
    --data '{ "guildid": "000000000000000000", "terms": ["badword1", "badword2", "badword3"], "action": 2 }'
Name Type Description
guildid string The Discord ID of the guild the censor(s) is/are to be added to.
terms string[] The terms to be added to the provided guild.
action int The action to be taken automatically upon a censored term being identified.
# AutoAction

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

{
    "guildid": "000000000000000000",
    "terms": ["badword1", "badword2", "badword3"],
    "action": 2
}

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

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

{
    "guildid": "000000000000000000",
    "terms": ["badword1", "badword2", "badword3"]
}