#
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 }'
#
AutoAction
#
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" }'
#
Example
{
"guildid": "000000000000000000",
"statement": "regexstatement1"
}