mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 19:28:17 +00:00
Add ?
This commit is contained in:
@@ -159,7 +159,7 @@ function createRequestBody(body: any, method: RequestMethods) {
|
||||
headers["X-Audit-Log-Reason"] = encodeURIComponent(body.reason);
|
||||
}
|
||||
|
||||
if (body.file) {
|
||||
if (body?.file) {
|
||||
if (!Array.isArray(body.file)) body.file = [body.file];
|
||||
|
||||
const form = new FormData();
|
||||
|
||||
Reference in New Issue
Block a user