mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 17:30:07 +00:00
fix: fetch hooks not working if debug defined later
This commit is contained in:
@@ -83,14 +83,14 @@ export function createRestManager (
|
||||
fetching:
|
||||
options.fetching ??
|
||||
function (opts: RestSendRequestOptions) {
|
||||
options.debug?.(
|
||||
rest.debug?.(
|
||||
`[REST - fetching] URL: ${opts.url} | ${JSON.stringify(opts)}`
|
||||
)
|
||||
},
|
||||
fetched:
|
||||
options.fetched ??
|
||||
function (opts: RestSendRequestOptions, response: Response) {
|
||||
options.debug?.(
|
||||
rest.debug?.(
|
||||
`[REST - fetched] URL: ${opts.url} | Status: ${
|
||||
response.status
|
||||
} ${JSON.stringify(opts)}`
|
||||
|
||||
Reference in New Issue
Block a user