Route key used for Discord bucket tracking.
Snowflake identifier for route-specific rate limiting.
HTTP method to use for the request.
Full Discord API path, including leading slash.
Authorization header value or null for unauthenticated requests.
Optionalbody: unknownRequest payload to send as JSON or form data.
Optionalparameters: ParametersQuery string parameters for the request URL.
Optionalreason: stringOptional audit log reason header.
Parsed response payload, blob, text, or undefined for 204 No Content.
Perform an HTTP request against the Discord REST API with built-in rate limit handling.
This function enforces Discord's global and per-route rate limits, serializes request bodies, and parses common response content types.