Socket
Socket
Sign inDemoInstall

satella

Package Overview
Dependencies
11
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.0 to 1.2.1

src/Handler/GUILD_BAN_ADD.js

1

index.d.ts

@@ -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 @@

2

package.json
{
"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 @@ })

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc