satella
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -23,2 +23,3 @@ import events from "events" | ||
(event: "ExitGuild", func: (arg0: Guild) => void): T; | ||
(event: "MemberRemove", func: (arg0: Member) => void): T; | ||
} | ||
@@ -25,0 +26,0 @@ |
{ | ||
"name": "satella", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Satella - A wrapper for the Discord API made in JS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -0,1 +1,3 @@ | ||
/* eslint-disable space-infix-ops */ | ||
/* eslint-disable prefer-template */ | ||
/* eslint-disable object-curly-spacing */ | ||
@@ -57,3 +59,3 @@ /* eslint-disable no-dupe-class-members */ | ||
headers: { | ||
"Authorization": this._client.token, | ||
"Authorization": "Bot " + this._client.token, | ||
"User-Agent": userAgent, | ||
@@ -63,3 +65,4 @@ 'Content-Type': 'application/json' | ||
}).then(res => { | ||
if(!res.status === 204) throw new Error("An error has happened!") | ||
if(res.status !== 204) throw new Error("An error has happened!") | ||
resolve(null) | ||
}) | ||
@@ -80,3 +83,3 @@ }) | ||
headers: { | ||
"Authorization": this._client.token, | ||
"Authorization": "Bot "+this._client.token, | ||
"User-Agent": userAgent, | ||
@@ -86,3 +89,4 @@ 'Content-Type': 'application/json' | ||
}).then(res => { | ||
if(!res.status === 204) throw new Error("An error has happened!") | ||
if(res.status !== 204) throw new Error("An error has happened!") | ||
resolve(null) | ||
}) | ||
@@ -89,0 +93,0 @@ }) |
35808
29
1022