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

retrocord

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

retrocord - npm Package Compare versions

Comparing version 1.1.6 to 1.1.7

4

package.json
{
"name": "retrocord",
"version": "1.1.6",
"version": "1.1.7",
"description": "The best in life",

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

"ansi-256-colors": "^1.1.0",
"discord.js": "github:hydrabolt/discord.js#master",
"discord.js": "github:hydrabolt/discord.js",
"inquirer": "^2.0.0",

@@ -17,0 +17,0 @@ "node-emoji": "^1.4.3",

@@ -7,3 +7,3 @@ module.exports = (vorpal) => {

if (text.startsWith('dm')) {
x.push(...discord.channels.filter(c => c.type === 'dm' || c.type === 'group').map(c => `#${(c.name ? c.name : c.recipient.username).toLowerCase()}`));
x.push(...discord.channels.filter(c => c.type === 'dm' || c.type === 'group').map(c => `@${(c.name ? c.name : c.recipient.username).toLowerCase()}`));
} else {

@@ -16,3 +16,4 @@ x.push(...discord.channels.filter(c => c.type === 'text').map(c => `#${c.name.toLowerCase()}`));

args = args['guild#channel'].join(' ');
let [guild, channel] = [args.split('#')[0].trim(), args.split('#')[1]];
const re = /@|#/;
let [guild, channel] = [args.split(re)[0].trim(), args.split(re)[1].trim()];
if (guild !== 'dm') {

@@ -33,3 +34,2 @@ guild = guild ? discord.guilds.find(g => g.name.toLowerCase() === guild.toLowerCase()) :

} else {
if (!args.includes('#')) return cb(chalk.bold('INVALID!'));
channel = discord.channels.filter(c => c.type === 'dm').find(c => c.recipient.username.toLowerCase() === channel.toLowerCase().trim());

@@ -36,0 +36,0 @@ if (!channel) {

@@ -80,2 +80,4 @@ #!/usr/bin/env node

}
if (message.author.id !== client.user.id) message.acknowledge();
};

@@ -82,0 +84,0 @@

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