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

@gary50613/discord.js-command-handler

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gary50613/discord.js-command-handler - npm Package Compare versions

Comparing version 2.5.2 to 2.5.3

FUNDING.yml

3

package.json
{
"name": "@gary50613/discord.js-command-handler",
"version": "2.5.2",
"version": "2.5.3",
"description": "simple discord.js command handler",

@@ -8,3 +8,2 @@ "main": "src/index.js",

"directories": {
"doc": "docs",
"test": "test"

@@ -11,0 +10,0 @@ },

# discord.js-command-handler
<a href='https://ko-fi.com/Gary50613' target='_blank'><img height='35' style='border:0px;height:46px;' src='https://az743702.vo.msecnd.net/cdn/kofi3.png?v=0' border='0' alt='Buy Me a Coffee at ko-fi.com' />
> Simple command handler for discord.js

@@ -3,0 +5,0 @@

@@ -62,4 +62,5 @@ const Interaction = require("../base/Interaction")

async _createCommand(command) {
this.bot?.guilds?.cache
.forEach(g => this.bot?.api?.applications(this.bot?.user?.id).guilds(g.id)?.commands?.post({data: command}))
for(let g of this.bot?.guilds?.cache.values())
await (this.bot?.api?.applications(this.bot?.user?.id))
.guilds(g.id)?.commands?.post({data: command}).catch(() => {})
}

@@ -66,0 +67,0 @@ }

Sorry, the diff of this file is not supported yet

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