Comparing version 0.3.0 to 0.3.1
@@ -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 @@ |
@@ -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; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8390
153