From 13f0a209ca4506e0275967feec68d0890d5699b8 Mon Sep 17 00:00:00 2001 From: Skillz Date: Fri, 17 Apr 2020 22:17:11 -0400 Subject: [PATCH] fix typo --- module/request_manager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/request_manager.ts b/module/request_manager.ts index 25336bae2..b4b0b3e18 100644 --- a/module/request_manager.ts +++ b/module/request_manager.ts @@ -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() } }