diff --git a/lib.js b/lib.js index fe912e7..954e97f 100644 --- a/lib.js +++ b/lib.js @@ -1336,7 +1336,6 @@ exports.DiscordAPI = class DiscordAPI } async getUser () { - return await fetch('https://discord.com/api/users/@me', { headers: { @@ -1474,8 +1473,8 @@ exports.DiscordAPI = class DiscordAPI AuthStringMaker(cookieString) { const splitCookie = cookieString.split('; '); - const tokenType = splitCookie[1].split('=')[1]; - const accessToken = splitCookie[0].split('=')[1]; + const tokenType = splitCookie[0].split('=')[1]; + const accessToken = splitCookie[1].split('=')[1]; return `${tokenType} ${accessToken}` } /**