New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

djs-commander

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

djs-commander - npm Package Compare versions

Comparing version 0.0.36 to 0.0.37

6

CHANGELOG.md

@@ -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 @@

2

package.json
{
"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).
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