mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
fix: remove debugs
This commit is contained in:
@@ -23,16 +23,6 @@ export async function sendRequest<T>(rest: RestManager, options: RestSendRequest
|
||||
// CUSTOM HANDLER FOR USER TO LOG OR WHATEVER WHENEVER A FETCH IS MADE
|
||||
rest.fetching(options);
|
||||
|
||||
// @ts-ignore
|
||||
if (options.url.startsWith(BASE_URL) && options.payload?.body) {
|
||||
// @ts-ignore
|
||||
options.payload.body = JSON.parse(options.payload.body);
|
||||
// @ts-ignore
|
||||
options.payload.body.content += ` ${Date.now()}`;
|
||||
// @ts-ignore
|
||||
options.payload.body = JSON.stringify(options.payload.body);
|
||||
}
|
||||
|
||||
const response = await fetch(
|
||||
options.url.startsWith(BASE_URL) ? options.url : `${BASE_URL}/v${rest.version}/${options.url}`,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user