setDefaultMemberPermission in dm channels

I'm trying to merge my clean and cleanDM commands (one to clean up messages in dms, one for guilds) can I still use .setDefaultMemberPermissions(PermissionFlagsBits.ManageMessages) or would that automatically set DMPermission to false?
7 Replies
d.js toolkit
d.js toolkitβ€’8mo 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! - βœ… Marked as resolved by OP
Unknown User
Unknown Userβ€’8mo ago
Message Not Public
Sign In & Join Server To View
π’„π’π’„π’π’Œπ’Šπ’•π’•π’†π’
so is it fine to use .setDefaultMemberPermissions on a command that I want to work both in guilds and dm's?
Unknown User
Unknown Userβ€’8mo ago
Message Not Public
Sign In & Join Server To View
π’„π’π’„π’π’Œπ’Šπ’•π’•π’†π’
great, so itll set the default permissions for guilds and not interfer with dms?
Unknown User
Unknown Userβ€’8mo ago
Message Not Public
Sign In & Join Server To View
π’„π’π’„π’π’Œπ’Šπ’•π’•π’†π’
yes, thanks a lot, I think this should work the way I imagine it then