Parse Args
This endpoint processes the "text" from the request body, breaking it into components like command, user ID, and reason. The parsed elements are returned, enabling structured handling of command input
Request Information
POST https://exorion.xyz/api/parse-args
https://exorion.xyz/api/parse-argsCode Examples
import requests
url = "https://exorion.xyz/api/parse-args"
params = {
"pingtoid": "false",
"textstatus": "false"
}
headers = {
"Authorization": "API_KEY", # Your API Key from /settings
"Content-Type": "application/json"
}
payload = {
"text": "!mute <@559449646410235935> 7d broke the rules"
}
response = requests.post(url, headers=headers, params=params, json=payload)
print(response.status_code, response.json())const fetch = require("node-fetch");
const url = "https://exorion.xyz/api/parse-args";
const params = new URLSearchParams({
pingtoid: "false",
textstatus: "false"
});
const headers = {
"Authorization": "API_KEY", // Your Server API key in /settings
"Content-Type": "application/json"
};
const body = JSON.stringify({
text: "!mute <@559449646410235935> 7d broke the rules"
});
fetch(`${url}?${params.toString()}`, { method: "POST", headers, body })
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error("Error:", err));Last updated


