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:
@@ -35,7 +35,7 @@ export function runMethod<T = any>(
|
||||
.then((res) => {
|
||||
if (res.status === 204) return undefined;
|
||||
|
||||
return res.json() as unknown as T;
|
||||
return res.json() as T;
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
|
||||
Reference in New Issue
Block a user