curl --request POST \
--url https://quark.bot/api/servers/{guild_id}/active/ignore/executors \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "301655085954367490",
"count": 2,
"time": 30
}
'import requests
url = "https://quark.bot/api/servers/{guild_id}/active/ignore/executors"
payload = {
"id": "301655085954367490",
"count": 2,
"time": 30
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({id: '301655085954367490', count: 2, time: 30})
};
fetch('https://quark.bot/api/servers/{guild_id}/active/ignore/executors', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://quark.bot/api/servers/{guild_id}/active/ignore/executors",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id' => '301655085954367490',
'count' => 2,
'time' => 30
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://quark.bot/api/servers/{guild_id}/active/ignore/executors"
payload := strings.NewReader("{\n \"id\": \"301655085954367490\",\n \"count\": 2,\n \"time\": 30\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://quark.bot/api/servers/{guild_id}/active/ignore/executors")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"301655085954367490\",\n \"count\": 2,\n \"time\": 30\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://quark.bot/api/servers/{guild_id}/active/ignore/executors")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"301655085954367490\",\n \"count\": 2,\n \"time\": 30\n}"
response = http.request(request)
puts response.read_body{}{
"error": "<string>"
}{}{
"error": "<string>"
}{}Ignore the next logs of things done by a user
Asks Quark to leave out the next logs of things done by one user, usually your own bot. Send it just before, or just after, the bot acts.
Active Ignore has to be switched on for the log type, or for every log type, before a request has any effect. A request that is not used expires on its own.
When your bot acts for a moderator and puts their ID at the start of the audit log reason, the log still counts as done by the bot. Send the bot’s ID.
A request that leaves out logType never covers a protected log type: Ban, Unban, Kick, Timeout and Timeout Removed (39 to 43), every Quark Events log type, Member Leave (2) and Bot Removed (58). To leave one of those out, name it in logType and use an Admin token.
Requests are recorded in the server’s Quark Events channel, as an Ignore Options Updated log that names the token by its ID. A request that names a protected log type is recorded every time. Any other request is recorded once an hour for each token.
curl --request POST \
--url https://quark.bot/api/servers/{guild_id}/active/ignore/executors \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "301655085954367490",
"count": 2,
"time": 30
}
'import requests
url = "https://quark.bot/api/servers/{guild_id}/active/ignore/executors"
payload = {
"id": "301655085954367490",
"count": 2,
"time": 30
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({id: '301655085954367490', count: 2, time: 30})
};
fetch('https://quark.bot/api/servers/{guild_id}/active/ignore/executors', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://quark.bot/api/servers/{guild_id}/active/ignore/executors",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id' => '301655085954367490',
'count' => 2,
'time' => 30
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://quark.bot/api/servers/{guild_id}/active/ignore/executors"
payload := strings.NewReader("{\n \"id\": \"301655085954367490\",\n \"count\": 2,\n \"time\": 30\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://quark.bot/api/servers/{guild_id}/active/ignore/executors")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"301655085954367490\",\n \"count\": 2,\n \"time\": 30\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://quark.bot/api/servers/{guild_id}/active/ignore/executors")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"301655085954367490\",\n \"count\": 2,\n \"time\": 30\n}"
response = http.request(request)
puts response.read_body{}{
"error": "<string>"
}{}{
"error": "<string>"
}{}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The server's ID. Must be the server the token was created for.
^\d{17,20}$"301655085954367490"
Query Parameters
Set to pro to act on the Quark Pro bot's configuration. Leave out for the main Quark bot.
pro Body
The user ID of whoever does it.
^\d{17,20}$Only ignore logs of this type. Leave it out to ignore a log of any type that is not protected. Naming a protected log type needs an Admin token. See the log types page.
x >= 0How many logs to leave out, 100 at most. A fraction is rounded up before the limit is applied.
x <= 100How long the request lasts, in seconds. A fraction is rounded up. Anything over 300 is shortened to 300 (five minutes).
Response
Accepted. The request is stored and Quark leaves out the next matching logs.
An empty object.
Was this page helpful?

