Remove user from all private threads
As described - I have the user added to a private thread and want a way to remove the user from their private threads, without necessarily knowing what private threads they are currently added in.
11 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.Hmm, loop through all the threadchannels in a guild, check the threadmembersmanager for the member and if they're there, remove them. Use fetch("id") on the threadmembersmanager btw
That is API spam
The remove method? Had a feeling it was going to be
I thought they meant the fetch calls
Well... both
I mean, fetch only sends a request to the api if the member isn't cached, it checks the cache first so unless the member ain't cached then yeah I'd see why
No not that I told him filter the channelmanager by threadchannels that include the member he wants
ThreadManager#fetchActive()
Obtains all active thread channels in the guild. This internally calls GuildChannelManager#fetchActiveThreads().
@tyranasaurus