@gary50613/discord.js-command-handler
Advanced tools
Comparing version 2.5.2 to 2.5.3
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29957
22
560
180