mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
fix(snowflake): snowflakes length (#9144)
* fix(snowflake): fix snowflakes length * fix(snowflake): fix length
This commit is contained in:
@@ -148,7 +148,7 @@ class ThreadManager extends CachedManager {
|
||||
let id;
|
||||
const query = makeURLSearchParams({ limit });
|
||||
if (typeof before !== 'undefined') {
|
||||
if (before instanceof ThreadChannel || /^\d{16,19}$/.test(String(before))) {
|
||||
if (before instanceof ThreadChannel || /^\d{17,19}$/.test(String(before))) {
|
||||
id = this.resolveId(before);
|
||||
timestamp = this.resolve(before)?.archivedAt?.toISOString();
|
||||
const toUse = type === 'private' && !fetchAll ? id : timestamp;
|
||||
|
||||
Reference in New Issue
Block a user