Socket
Socket
Sign inDemoInstall

satella

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

satella - npm Package Compare versions

Comparing version 1.2.8 to 1.2.9

2

package.json
{
"name": "satella",
"version": "1.2.8",
"version": "1.2.9",
"description": "Satella - A wrapper for the Discord API made in JS",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -29,3 +29,3 @@ /* eslint-disable no-undef-init */

if(parseInt(e.type) === 1){
if(e.type == 1){
channel = new DMChannel(client, e)

@@ -32,0 +32,0 @@ client.channels.dmchannels.set(channel.id, channel);

@@ -0,1 +1,2 @@

/* eslint-disable padded-blocks */
const Chest = require('../Utils/Chest');

@@ -14,4 +15,12 @@ const Mentions = require('./Mentions');

this.guild = client.guilds.get(data.guild_id);
this.channel = client.channels.dmchannels.get(data.channel_id) || this.guild.channels.get(data.channel_id) || undefined
if(client.channels.channels.get(data.channel_id)){
this.channel = client.channels.channels.get(data.channel_id)
}else if(client.channels.dmchannels.get(data.channel_id)){
this.channel = client.channels.dmchannels.get(data.channel_id)
}else{
this.channel = undefined
}
if(this.channel && this.channel.type == 1){

@@ -18,0 +27,0 @@ this.user = this.channel.users.first()

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc