This commit is contained in:
Skillz
2020-04-17 22:17:11 -04:00
parent b12737a30a
commit 13f0a209ca
+2 -2
View File
@@ -46,9 +46,9 @@ const create_request_body = (body: any, method?: RequestMethod) => {
Authorization: authorization,
"User-Agent": `DiscordBot (https://github.com/skillz4killz/discordeno, 0.0.1)`,
"Content-Type": "application/json",
"X-Audit-Log-Reason": body && body.reason ? encodeURIComponent(body.reason) : undefined,
"X-Audit-Log-Reason": body && body.reason ? encodeURIComponent(body.reason) : '',
},
body: body ? JSON.stringify(body) : undefined,
body: JSON.stringify(body),
method: method?.toUpperCase()
}
}