mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-01 16:30:08 +00:00
Update headers for REST Controller
This commit is contained in:
@@ -25,7 +25,8 @@ export async function runMethod<T = any>(
|
||||
const result = await fetch(url, {
|
||||
body: JSON.stringify(body || {}),
|
||||
headers: {
|
||||
authorization: rest.secretKey,
|
||||
"Authorization": rest.secretKey,
|
||||
"Content-Type": "application/json"
|
||||
},
|
||||
method: method.toUpperCase(),
|
||||
}).catch((error) => {
|
||||
|
||||
Reference in New Issue
Block a user