I can't use permissionOverwrites methods

Maybe i'm missing some required things.
27 Replies
d.js toolkit
d.js toolkit•2y 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!
Mami
MamiOP•2y ago
I tried permissionOverwrites.edit(...) and error looks like this
Mami
MamiOP•2y ago
Mami
MamiOP•2y ago
Here is my intents
Mami
MamiOP•2y ago
Mami
MamiOP•2y ago
the problem is there is no function or something after writing permissionOverwrites
Mami
MamiOP•2y ago
in docs theres alot of methods
Mami
MamiOP•2y ago
ops sory
d.js docs
d.js docs•2y ago
method PermissionOverwriteManager#edit() Edits permission overwrites for a user or role in this channel, or creates an entry if not already present.
Mami
MamiOP•2y ago
ok wait pls i try set() and response here it worked :D thank you a lot i just scared about there is no intellisense
Mami
MamiOP•2y ago
i don't understand your question but this is my command
Mami
MamiOP•2y ago
i think you want this
Mami
MamiOP•2y ago
i added opposite if but i don't understand replacing to getUser and i'm sorry about my english sometimes i don't understand what did you want to tell by the way what happened to your mod role
Mami
MamiOP•2y ago
Mami
MamiOP•2y ago
replaced it
Mami
MamiOP•2y ago
i changed something like you tel
Mami
MamiOP•2y ago
and works how i want can i ask one more question if you don't get angry to me bc i'm gonna ask the same question
Mami
MamiOP•2y ago
how can i make this intellisense work?
Mami
MamiOP•2y ago
i removed all await and async
Mami
MamiOP•2y ago
Mami
MamiOP•2y ago
if you wan't i can send all of code here if it will helps to you
Mami
MamiOP•2y ago
same :(
Mami
MamiOP•2y ago
any nothing changed yeeeeeeep
Mami
MamiOP•2y ago
it worked
Mami
MamiOP•2y ago
thank you a lot again and again and removed the optional chain is thread means post like this channel? i understand i have one more question 🥺 how can i get users in server nickname
d.js docs
d.js docs•2y ago
property GuildMember#nickname The nickname of this member, if they have one
Mami
MamiOP•2y ago
wow you are awesome thank you sooo much i think it's time to close this post

Did you find this page helpful?