mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
docs(bigbot): fix REST body handling (#4464)
This commit is contained in:
@@ -76,7 +76,7 @@ app.all('/*', async (req, res) => {
|
||||
|
||||
try {
|
||||
const result = await REST.makeRequest(req.method, req.url.substring(4), {
|
||||
body: req.method !== 'DELETE' && req.method !== 'GET' ? {} : req.body,
|
||||
body: req.method !== 'DELETE' && req.method !== 'GET' ? req.body : undefined,
|
||||
})
|
||||
|
||||
if (result) {
|
||||
|
||||
Reference in New Issue
Block a user