djs-commander
Advanced tools
Comparing version 0.0.36 to 0.0.37
@@ -7,2 +7,8 @@ # Change Log | ||
## [0.0.37] - 2023-02-20 | ||
### Added | ||
- Reflect v0.0.36 changes to README.md | ||
## [0.0.36] - 2023-02-20 | ||
@@ -9,0 +15,0 @@ |
{ | ||
"name": "djs-commander", | ||
"version": "0.0.36", | ||
"version": "0.0.37", | ||
"description": "A command and event handler that works seemlessly with Discord.js", | ||
@@ -5,0 +5,0 @@ "types": "./dist/index.d.ts", |
@@ -134,3 +134,3 @@ # DJS-Commander: A Library for Discord.js Projects | ||
// validations/dev-only.js | ||
module.exports = (interaction, commandObj, handler) => { | ||
module.exports = (interaction, commandObj, handler, client) => { | ||
if (commandObj.devOnly) { | ||
@@ -148,3 +148,4 @@ if (interaction.member.id !== 'DEVELOPER_ID') { | ||
- `handler` is the CommandHandler instance. You can use this to get access to properties such as `commands`. | ||
- `client` is the Client instance. (defined in your main entry point) | ||
It's important to return `true` (or any truthy value) if you don't want the command to be executed (this also ensures the next validation that was queued up is not executed). |
30515
150