diff --git a/utils/Fetch.ts b/utils/Fetch.ts index 2e88eca..d96fe53 100644 --- a/utils/Fetch.ts +++ b/utils/Fetch.ts @@ -2,6 +2,7 @@ import { ResponseProps } from '@types' import { KoreanbotsEndPoints } from './Constants' const Fetch = async (endpoint: string, options?: RequestInit, rawEndpoint=false): Promise> => { + options = options ?? {} const url = (rawEndpoint ? '' : KoreanbotsEndPoints.baseAPI) + (endpoint.startsWith('/') ? endpoint : '/' + endpoint) const res = await fetch(url, {