how do i change the permission overwrites of a thread?

im not sure how to do this; it's a thread ticket system and im not sure how to set permissions for the thread
10 Replies
d.js toolkit
d.js toolkitthis hour
- 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! - Marked as resolved by OP
treble/luna
treble/lunathis hour
threads dont have permissions their parent does
mars
marsOPthis hour
how would i restrict its access from other users
treble/luna
treble/lunathis hour
make private threads
mars
marsOPthis hour
yeah channels, but its 1 channel
const thread = await channel.threads.create({
name: `report-${interaction.user.username}`,
autoArchiveDuration: 60,
private: true,
})
const thread = await channel.threads.create({
name: `report-${interaction.user.username}`,
autoArchiveDuration: 60,
private: true,
})
would that make it private?
mars
marsOPthis hour
because i can still join and see the thread on my alt account in the top right
No description
treble/luna
treble/lunathis hour
no, thats not even a valid option, please dont just guess
mars
marsOPthis hour
i found it on the docs sorry i was looking at the wrong part of the docs, how would i make invitable false too?
d.js docs
d.js docsthis hour
:propertysignature: GuildTextThreadCreateOptions#invitable [email protected] Whether non-moderators can add other non-moderators to the thread Can only be set when type will be ChannelType.PrivateThread
mars
marsOP23h ago
alr thx

Did you find this page helpful?