Fecth a user to edit a permission

I can figure it
12 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Mardroide
MardroideOP2y ago
Mardroide
MardroideOP2y ago
Syjalo
Syjalo2y ago
.fetch()returns a Promise. You need to resolve it. And you don't even need to fetch. Just provide the id to the overwrite.
Mardroide
MardroideOP2y ago
it also said me that with mi id
Mardroide
MardroideOP2y ago
Mardroide
MardroideOP2y ago
like this i mean sais the same o man its different sorry
Syjalo
Syjalo2y ago
Oh, I forgot. You also need to provide the type if you use ids.
{
id: "id",
type: OverwriteType.Member
}
{
id: "id",
type: OverwriteType.Member
}
Import OverwriteType from discord.js
Mardroide
MardroideOP2y ago
same thing id why
Syjalo
Syjalo2y ago
Show your current code
Mardroide
MardroideOP2y ago
Mardroide
MardroideOP2y ago
my bad sir it should be .set Now i hace missing permissions xd No man thats not now the problem im trying to ban but it sais Missing Permmisions yeah, i'll close this post, thanks you all!
Want results from more Discord servers?
Add your server