Strange error 10 min after running command?
https://gist.github.com/DudeThatsErin/21e9fc7bce56dade272fd4b10a783697
I was able to get the suggestion to add to the DB but now when I try to mark a suggestion as completed, it times out. No errors in console. I'm not sure where it is having the issue as nothing seems to happen BUT it does get updated in the DB when I look at the DB. So, the update is happening but nothing gets sent and the thread doesn't get locked or anything.
Error: https://gist.github.com/DudeThatsErin/dbfdba65ae363a280427d629b46c4bed
20 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
you are importing a module that isn't installed
this is not discord.js related
#useful-servers <#869652447881207858>
Sorry that was the wrong error
I updated
The error I added is DJS related
Fetching members can time out on large guilds, as they arrive in chunks through the websocket connections.
• You can specify the
time
option in FetchMembersOptions
to specify how long you want to wait.
• Make sure you have the required GuildMembers
gateway intent enabledSo you are saying this is the thing timing out?
const aut = await interaction.guild.members.fetch(OGauthor);
most likely
OGAuthor must not be what you think
It is the author's ID. I'm looking at it in the database
but what about in your code
I don't know what you mean?
OGauthor
log it
That fixed my issue. Now it isn't locking the thread though.
It finds it, tested it by logging it but no errors in console (yet) and embed updated but this is the only thing that didn't happen.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
So setClosed?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I didn’t see that on the guide
Just looked again not there https://discordjs.guide/popular-topics/threads.html#public-and-private-threads
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
It does. But threads aren’t locking
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
How? Did you read above? It isn’t in the guide
I understand it is Close & Lock but I don’t know the code to close a thread. setClosed doesn’t appear to be a thing
Close = archive?
Then why do they use both? Discord is annoying
Lol
Confusing for no reason
Alright Ty!