Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

revchiver

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

revchiver - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# v0.3.1 (2022-05-06)
- Hotfix for v0.3.0.
# v0.3.0 (2022-05-06)

@@ -2,0 +6,0 @@

9

dist/archiveChannel.js

@@ -28,6 +28,7 @@ async function archiveChannel(msg, ignoreSuppliedMessage = true, botMsg) {

while (continueFetching) {
const msgs = await msg.channel?.fetchMessagesWithUsers({
limit: 100,
before: fetchbefore,
});
// hacky workaround for before param
const configObj = fetchbefore
? { limit: 100, before: fetchbefore }
: { limit: 100 };
const msgs = await msg.channel?.fetchMessagesWithUsers(configObj);
if (!msgs || !msgs.messages)

@@ -34,0 +35,0 @@ return "nothingToArchive";

{
"name": "revchiver",
"version": "0.3.0",
"version": "0.3.1",
"description": "Archiving library for Revolt.",

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

@@ -37,6 +37,7 @@ import { Message } from "revolt.js/dist/maps/Messages";

while (continueFetching) {
const msgs = await msg.channel?.fetchMessagesWithUsers({
limit: 100,
before: fetchbefore,
});
// hacky workaround for before param
const configObj = fetchbefore
? { limit: 100, before: fetchbefore }
: { limit: 100 };
const msgs = await msg.channel?.fetchMessagesWithUsers(configObj);
if (!msgs || !msgs.messages) return "nothingToArchive";

@@ -43,0 +44,0 @@ const users = msgs.members;

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