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

disceasy

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

disceasy - npm Package Compare versions

Comparing version 0.0.9-beta to 0.1.0-beta

classes/command.message.js

2

classes/types/command.ts

@@ -6,3 +6,3 @@ import { PathLike } from "fs";

description: string,
pathToCommandFile: PathLike
action: Function
}

@@ -1,13 +0,23 @@

const actionMessageWrapper = require('../functions/action.message.wrapper')
const { Message } = require('discord.js');
const actionMessageWrapper = require('../functions/action.message.wrapper');
const CommandMessage = require('../classes/command.message')
module.exports = {
name: 'messageCreate',
once: false,
/**
*
* @param {Message} message
*/
run: (message) => {
if (message.content.startsWith(message.client.options.prefix)) {
const command = message.content.replace(message.client.options.prefix, '');
if (message.client.messageCommands.get(command)) {
const cmd = message.client.messageCommands.get(command);
const command = message.content
.replace(message.client.options.prefix, '')
.split(' ');
if (message.client.messageCommands.get(command[0])) {
const cmd = message.client.messageCommands.get(command[0]);
actionMessageWrapper(message, cmd)
const cmdMessage = new CommandMessage(message);
cmd(cmdMessage);
}

@@ -14,0 +24,0 @@

{
"name": "disceasy",
"version": "0.0.9-beta",
"version": "0.1.0-beta",
"description": "Um pacote simples para produzir bots Discord sem complicação.",

@@ -5,0 +5,0 @@ "main": "src/index.js",

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