curl --request POST \
--url https://quark.bot/api/servers/{guild_id}/active/ignore/targets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "1290000000000000000",
"type": 6,
"logType": 5
}
'import requests
url = "https://quark.bot/api/servers/{guild_id}/active/ignore/targets"
payload = {
"id": "1290000000000000000",
"type": 6,
"logType": 5
}
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: '1290000000000000000', type: 6, logType: 5})
};
fetch('https://quark.bot/api/servers/{guild_id}/active/ignore/targets', 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/targets",
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' => '1290000000000000000',
'type' => 6,
'logType' => 5
]),
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/targets"
payload := strings.NewReader("{\n \"id\": \"1290000000000000000\",\n \"type\": 6,\n \"logType\": 5\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/targets")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"1290000000000000000\",\n \"type\": 6,\n \"logType\": 5\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://quark.bot/api/servers/{guild_id}/active/ignore/targets")
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\": \"1290000000000000000\",\n \"type\": 6,\n \"logType\": 5\n}"
response = http.request(request)
puts response.read_body{}{
"error": "<string>"
}{}{
"error": "<string>"
}{}Ignore the next logs about a target
Asks Quark to leave out the next logs about one target: a member, message, channel, role or other thing a log is about. Send it just before, or just after, your bot does something you do not want logged.
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.
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/targets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "1290000000000000000",
"type": 6,
"logType": 5
}
'import requests
url = "https://quark.bot/api/servers/{guild_id}/active/ignore/targets"
payload = {
"id": "1290000000000000000",
"type": 6,
"logType": 5
}
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: '1290000000000000000', type: 6, logType: 5})
};
fetch('https://quark.bot/api/servers/{guild_id}/active/ignore/targets', 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/targets",
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' => '1290000000000000000',
'type' => 6,
'logType' => 5
]),
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/targets"
payload := strings.NewReader("{\n \"id\": \"1290000000000000000\",\n \"type\": 6,\n \"logType\": 5\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/targets")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"1290000000000000000\",\n \"type\": 6,\n \"logType\": 5\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://quark.bot/api/servers/{guild_id}/active/ignore/targets")
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\": \"1290000000000000000\",\n \"type\": 6,\n \"logType\": 5\n}"
response = http.request(request)
puts response.read_body{}{
"error": "<string>"
}{}{
"error": "<string>"
}{}Authorizations
Path Parameters
Query Parameters
Body
What kind of thing id is. 0 member, 1 channel, 2 emoji, 3 server, 4 invite, 5 none, 6 message, 7 role, 8 thread, 9 user, 10 stage, 11 event, 12 webhook, 13 sticker. A log matches when it has a target of this kind with this ID. A deleted message, for example, has the message (6) as a target.
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 Response
Accepted. The request is stored and Quark leaves out the next matching logs.
An empty object.
Was this page helpful?

