mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
Update src/rest/run_method.ts
Co-authored-by: ayntee <ayyantee@gmail.com>
This commit is contained in:
@@ -33,7 +33,7 @@ export function runMethod<T = any>(
|
||||
method: method.toUpperCase(),
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.status === 204) return undefined as unknown as T;
|
||||
if (res.status === 204) return undefined;
|
||||
|
||||
return res.json() as unknown as T;
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user