mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
chore(rest): Remove todo about GET bodies (#4375)
We do not need to do anythng with GET bodies, fetch() will even throw if a body is passed to a GET
This commit is contained in:
@@ -279,9 +279,6 @@ export function createRestManager(options: CreateRestManagerOptions): RestManage
|
||||
|
||||
let body: string | FormData | undefined
|
||||
|
||||
// TODO: check if we need to add specific check for GET method
|
||||
// Since GET does not allow bodies
|
||||
|
||||
// Have to check for attachments first, since body then has to be send in a different way.
|
||||
if (options?.files !== undefined) {
|
||||
const form = new FormData()
|
||||
|
||||
Reference in New Issue
Block a user