#channel.threads.fetchArchived not returning expected result

1 messages · Page 1 of 1 (latest)

dense marshBOT
#

@iron mauve to help others find answers, you can mark your question as solved via Right Click Solution Message->Apps->✅ Mark Solution

iron mauve
#

Fix:

- const archiveDate = +moment().substract(1, 'day');
+ const archiveDate = String(SnowflakeUtil.generate({ timestamp: +moment().substract(1, 'day') }));

current discordjs bug - timestamp is not converted to a snowflake

Discord only accepts snowflakes for before and after and around in methods in the API.