brackets-curlyParse 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

chevron-rightUrl Paramshashtag
Name
Value
Description
Required

pingtoid

boolean

Set whether or not if the text contains a mention it will be converted to a numerical number only.

textstatus

boolean

Set whether or not textstatus appears in the response. Shows if a time and reason is specified.


chevron-rightHTTP Headershashtag
Authentication
Value

Authorization

API_KEY

Content-Type

application/json


chevron-rightRequest Payloadhashtag
Name
Value
Required

text

!mute <@559449646410235935> 7d broke the rules

Code 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())

Last updated