Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

devland.js

Package Overview
Dependencies
Maintainers
1
Versions
158
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

devland.js - npm Package Compare versions

Comparing version 1.1.5 to 1.1.6

2

package.json

@@ -10,3 +10,3 @@ {

"name": "devland.js",
"version": "1.1.5",
"version": "1.1.6",
"description": "A powerful API wrapper for the Discord API designed for modern bots",

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

@@ -25,6 +25,6 @@ const Client = require('../../client/client')

data.channel = channel
let user = data.user ? client.users.get(data.user?.id) || await client.rest.get(client._ENDPOINTS.USER(data.user?.id)) : null;
let user = data.user ? client.users.get(data.user?.id || data.member?.user?.id) || await client.rest.get(client._ENDPOINTS.USER(data.user?.id || data.member?.user?.id)) : null;
if(user && !(user instanceof User)) user = new User(client, user)
let member;
if(data.member) member = guild.members.get(data.user?.id) || await client.rest.get(client._ENDPOINTS.MEMBERS(guild.id, data.user?.id))
if(data.member) member = guild.members.get(data.user?.id || data.member?.user?.id) || await client.rest.get(client._ENDPOINTS.MEMBERS(guild.id, data.user?.id || data.member?.user?.id))
if(member && !(member instanceof Member) && (user instanceof User)) member.user = user

@@ -31,0 +31,0 @@ if(member && !(member instanceof Member)) member = new Member(client, guild, member)

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