Socket
Socket
Sign inDemoInstall

deleo

Package Overview
Dependencies
86
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.2 to 1.2.3

4

dist/core/packageOpener.js

@@ -76,5 +76,3 @@ "use strict";

},
headers: {
"X-Context-Properties": "e30="
}
DiscordContext: {}
}), i = this.client.channels._add(n, null, {

@@ -81,0 +79,0 @@ cache: t

@@ -6,3 +6,3 @@ #! /usr/bin/env node

});
const e = require("@sapphire/result"), r = _interop_require_default(require("chalk")), o = require("commander"), a = _interop_require_default(require("inquirer")), t = require("./core"), s = require("./shared"), n = require("./shared/prompts"), l = require("./shared/utils"), g = require("../package.json");
const e = require("@sapphire/result"), r = _interop_require_default(require("chalk")), o = require("commander"), a = _interop_require_default(require("inquirer")), t = require("./core"), s = require("./shared"), n = require("./shared/prompts"), l = require("./shared/utils"), i = require("../package.json");
function _interop_require_default(e) {

@@ -13,10 +13,10 @@ return e && e.__esModule ? e : {

}
const i = new o.Command();
i.name("deleo").description(g.description).version(g.version, "-v, --version", "Output the current version").option("-t, --token <token>", "Your discord token").option("--verbose", "Enable verbose logging (disables progress bar)").option("--check-updates", "Check for updates", !0).addHelpCommand("help [command]", "Display help for command").helpOption("-h, --help", "Display help for command"), i.command("delete").description("Delete messages from open DMs or a specified channel.").option("-d, --delete-delay <delay>", "Delay between each message deletion in ms", "300").option("--close-dms", "Close DMs after deleting messages").action(async (o)=>{
const g = new o.Command();
g.name("deleo").description(i.description).version(i.version, "-v, --version", "Output the current version").option("-t, --token <token>", "Your discord token").option("--verbose", "Enable verbose logging (disables progress bar)").option("--check-updates", "Check for updates", !0).helpCommand("help [command]", "Display help for command").helpOption("-h, --help", "Display help for command"), g.command("delete").description("Delete messages from open DMs or a specified channel.").option("-d, --delete-delay <delay>", "Delay between each message deletion in ms", "300").option("--close-dms", "Close DMs after deleting messages").action(async (o)=>{
s.Logger.banner();
let d = {
...i.opts(),
...g.opts(),
...o
};
d.checkUpdates && await (0, l.isUpdated)(g.version);
d.checkUpdates && await (0, l.isUpdated)(i.version);
let p = new t.DeleoClient(d), c = await p.getToken();

@@ -51,5 +51,3 @@ c.isErr() && (s.Logger.error(c.unwrapErr()), process.exit()), p.on("ready", async ()=>{

"GROUP_DM"
].includes(e.type));
console.log(e);
let o = await (0, n.checkbox)({
].includes(e.type)), o = await (0, n.checkbox)({
message: (0, r.default)`{white Select the channels you want to delete messages from {rgb(237,112,20).bold >>}}`,

@@ -95,5 +93,5 @@ prefix: s.Logger.tag,

t.isErr() && (s.Logger.error("Invalid guild ID provided."), process.exit());
let g = t.unwrap(), i = await e.Result.fromAsync(()=>g.channels.fetch());
i.isErr() && (s.Logger.error("Something went wrong while fetching guild channels."), process.exit());
let d = i.unwrap().filter((e)=>e?.viewable && e?.isText()), c = await (0, n.checkbox)({
let i = t.unwrap(), g = await e.Result.fromAsync(()=>i.channels.fetch());
g.isErr() && (s.Logger.error("Something went wrong while fetching guild channels."), process.exit());
let d = g.unwrap().filter((e)=>e?.viewable && e?.isText()), c = await (0, n.checkbox)({
message: (0, r.default)`{white Select the channels you want to delete messages from {rgb(237,112,20).bold >>}}`,

@@ -126,9 +124,9 @@ prefix: s.Logger.tag,

}
}), i.command("open").description("Opens all DMs provided by the Discord Data Package.").option("--open-delay <delay>", "Delay between each DM open in ms", "300").action(async (e)=>{
}), g.command("open").description("Opens all DMs provided by the Discord Data Package.").option("--open-delay <delay>", "Delay between each DM open in ms", "300").action(async (e)=>{
s.Logger.banner();
let o = {
...i.opts(),
...g.opts(),
...e
};
o.checkUpdates && await (0, l.isUpdated)(g.version);
o.checkUpdates && await (0, l.isUpdated)(i.version);
let n = new t.DeleoClient(o), d = await n.getToken();

@@ -167,4 +165,4 @@ d.isErr() && (s.Logger.error(d.unwrapErr()), process.exit()), n.on("ready", async ()=>{

}
}), i.command("auth").description("Save your discord token.").argument("<token>", "Your discord token").action(async (e)=>{
if (s.Logger.banner(), i.opts().checkUpdates && await (0, l.isUpdated)(g.version), (await t.AuthManager.getToken()).isOk()) {
}), g.command("auth").description("Save your discord token.").argument("<token>", "Your discord token").action(async (e)=>{
if (s.Logger.banner(), g.opts().checkUpdates && await (0, l.isUpdated)(i.version), (await t.AuthManager.getToken()).isOk()) {
let { confirm: o } = await a.default.prompt({

@@ -183,2 +181,2 @@ name: "confirm",

}
}), i.parse(process.argv);
}), g.parse(process.argv);
{
"name": "deleo",
"version": "1.2.2",
"version": "1.2.3",
"description": "Deleo, a TypeScript-based CLI tool, simplifies Discord content management by enabling efficient deletion of messages in open DMs or specific channels.",

@@ -5,0 +5,0 @@ "author": "notsapinho",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc