Fecth a user to edit a permission

I can figure it
12 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Mardroide
MardroideOP3y ago
Mardroide
MardroideOP3y ago
Syjalo
Syjalo3y 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
MardroideOP3y ago
it also said me that with mi id
Mardroide
MardroideOP3y ago
Mardroide
MardroideOP3y ago
like this i mean sais the same o man its different sorry
Syjalo
Syjalo3y 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
MardroideOP3y ago
same thing id why
Syjalo
Syjalo3y ago
Show your current code
Mardroide
MardroideOP3y ago
Mardroide
MardroideOP3y 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!

Did you find this page helpful?