Threads not auto archiving

This could be a discord issue but i am out of ideas on my side tbh. My bot creates a form channel with an auto archive duration of 3 days. For testing purpose it is set to 1h, that way i do not have to wait too long. On my main and test server where i run the tests for the bot, i noticed that Discord does NOT in fact archive any old form posts. I checked if maybe a bot sent a message in there or something but i don't see any messages there. It also could't be a discord permission issue, as the bot has administrator. Here is what info i have gathered about this:
13 Replies
d.js toolkit
d.js toolkit4d ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
Black Wolf
Black WolfOP4d ago
npm [email protected] node v23.8.0 The bot works fine on other servers where auto archiving from discord works
Black Wolf
Black WolfOP3d ago
last change to the channels was also more than 1h ago I don't see where it shows that the bot unarchived the thread. How does the auto archiving process work then by discord? To make sure this is not the case, i have shut down the bot after creating the form posts with it. It hasn't changed anything though and discord still doesn't auto-archive the post/thread
{
"availableTags": [
{
"id": "1355492380647882812",
"name": "JOIN",
"emojiId": null,
"emojiName": null,
"moderated": false
},
{
"id": "1355492380647882813",
"name": "LEAVE",
"emojiId": null,
"emojiName": null,
"moderated": false
},
{
"id": "1355492380647882814",
"name": "REMOVED",
"emojiId": null,
"emojiName": null,
"moderated": false
},
{
"id": "1355492380647882815",
"name": "REQUESTED",
"emojiId": null,
"emojiName": null,
"moderated": false
},
{
"id": "1355492380647882816",
"name": "REJECTED",
"emojiId": null,
"emojiName": null,
"moderated": false
}
],
"defaultAutoArchiveDuration": 60,
"defaultForumLayout": 0,
"defaultSortOrder": null,
"flags_": 0,
"guild_id": "274557343058886666",
"id": "1355492380110749839",
"lastMessageId": "1355492944362344485",
"name": "vrc-join-leave",
"nsfw_": false,
"parent_id": "1355492372020072521",
"permissionOverwrites_": {
"1056233725895122956": {
"id": "1056233725895122956",
"type": 0,
"allow": "0",
"deny": "377959221312"
},
"274557343058886666": {
"id": "274557343058886666",
"type": 0,
"allow": "0",
"deny": "1024"
},
"1228969107957874698": {
"id": "1228969107957874698",
"type": 1,
"allow": "326417640464",
"deny": "0"
}
},
"position_": 3,
"rateLimitPerUser_": 0,
"template": "",
"themeColor": null,
"topic_": "",
"type": 15
}
{
"availableTags": [
{
"id": "1355492380647882812",
"name": "JOIN",
"emojiId": null,
"emojiName": null,
"moderated": false
},
{
"id": "1355492380647882813",
"name": "LEAVE",
"emojiId": null,
"emojiName": null,
"moderated": false
},
{
"id": "1355492380647882814",
"name": "REMOVED",
"emojiId": null,
"emojiName": null,
"moderated": false
},
{
"id": "1355492380647882815",
"name": "REQUESTED",
"emojiId": null,
"emojiName": null,
"moderated": false
},
{
"id": "1355492380647882816",
"name": "REJECTED",
"emojiId": null,
"emojiName": null,
"moderated": false
}
],
"defaultAutoArchiveDuration": 60,
"defaultForumLayout": 0,
"defaultSortOrder": null,
"flags_": 0,
"guild_id": "274557343058886666",
"id": "1355492380110749839",
"lastMessageId": "1355492944362344485",
"name": "vrc-join-leave",
"nsfw_": false,
"parent_id": "1355492372020072521",
"permissionOverwrites_": {
"1056233725895122956": {
"id": "1056233725895122956",
"type": 0,
"allow": "0",
"deny": "377959221312"
},
"274557343058886666": {
"id": "274557343058886666",
"type": 0,
"allow": "0",
"deny": "1024"
},
"1228969107957874698": {
"id": "1228969107957874698",
"type": 1,
"allow": "326417640464",
"deny": "0"
}
},
"position_": 3,
"rateLimitPerUser_": 0,
"template": "",
"themeColor": null,
"topic_": "",
"type": 15
}
@Qjuh ^ The default auto archive duration is set to 60 (1h). Yet, discord does not auto archive anything, even after months that passed. Thats where my confusion comes from. Not that i know of, no. I also checked the latest message id and see when it was sent
Black Wolf
Black WolfOP3d ago
here an old one i found:
{
"appliedTags": [
"1345817822546231478"
],
"flags_": 0,
"guild_id": "265505748413448193",
"id": "1347312033925824574",
"lastMessageId": "1347312033925824574",
"memberCount": 1,
"memberIdsPreview": [
"1344953414546755596"
],
"messageCount": 0,
"name": "unclesuki33 (by BlackWolfWoof)",
"nsfw_": false,
"ownerId": "1344953414546755596",
"parent_id": "1345817822470606871",
"parentChannelThreadType": 15,
"rateLimitPerUser_": 0,
"threadMetadata": {
"archived": false,
"autoArchiveDuration": 4320,
"archiveTimestamp": "2025-03-06T20:57:00.735000+00:00",
"createTimestamp": "2025-03-06T20:57:00.735000+00:00",
"locked": false,
"invitable": true
},
"totalMessageSent": 0,
"type": 11
}
{
"appliedTags": [
"1345817822546231478"
],
"flags_": 0,
"guild_id": "265505748413448193",
"id": "1347312033925824574",
"lastMessageId": "1347312033925824574",
"memberCount": 1,
"memberIdsPreview": [
"1344953414546755596"
],
"messageCount": 0,
"name": "unclesuki33 (by BlackWolfWoof)",
"nsfw_": false,
"ownerId": "1344953414546755596",
"parent_id": "1345817822470606871",
"parentChannelThreadType": 15,
"rateLimitPerUser_": 0,
"threadMetadata": {
"archived": false,
"autoArchiveDuration": 4320,
"archiveTimestamp": "2025-03-06T20:57:00.735000+00:00",
"createTimestamp": "2025-03-06T20:57:00.735000+00:00",
"locked": false,
"invitable": true
},
"totalMessageSent": 0,
"type": 11
}
Black Wolf
Black WolfOP3d ago
still 23 days ago its set to 3d Thats why i ran it here
Black Wolf
Black WolfOP3d ago
Nobody has been touching the channels be it with ephemeral or none ephemeral messages I can be the only one on the server with the bot and test it there Testing will take me an hour probably (min duration) I'll be back in an hour with the results. On the new server i am testing this on it will only be me for now
Black Wolf
Black WolfOP3d ago
has not been archived yet. 1h has passed
{
"id": "1355822278088065054",
"type": 15,
"name": "dsfsdf",
"guild_id": "1355822137595924611",
"topic_": "",
"position_": 0,
"permissionOverwrites_": {},
"nsfw_": false,
"parent_id": "1355822137595924612",
"rateLimitPerUser_": 0,
"defaultAutoArchiveDuration": 60,
"flags_": 0,
"lastMessageId": null,
"availableTags": [],
"template": "",
"defaultSortOrder": null,
"version": "1743323629024",
"defaultForumLayout": 0,
"themeColor": null
}
{
"id": "1355822278088065054",
"type": 15,
"name": "dsfsdf",
"guild_id": "1355822137595924611",
"topic_": "",
"position_": 0,
"permissionOverwrites_": {},
"nsfw_": false,
"parent_id": "1355822137595924612",
"rateLimitPerUser_": 0,
"defaultAutoArchiveDuration": 60,
"flags_": 0,
"lastMessageId": null,
"availableTags": [],
"template": "",
"defaultSortOrder": null,
"version": "1743323629024",
"defaultForumLayout": 0,
"themeColor": null
}
^ form channel

Did you find this page helpful?