Search
Get Started
d-I❄
discord.js - Imagine ❄
•
3y ago
Mardroide
Fecth a user to edit a permission
I can figure it
discord.js - Imagine ❄
Join
Support server for discord.js, a Node.js module to interact with Discord's apps API.
58,353
Members
View on Discord
Was this page helpful?
Yes
No
M
Mardroide
OP
•
2/9/23, 4:06 PM
M
Mardroide
OP
•
2/9/23, 4:06 PM
S
Syjalo
•
2/9/23, 4:08 PM
returns a Promise
. You need to resolve it
. And you don
't even need to fetch
. Just provide the id to the overwrite
.
M
Mardroide
OP
•
2/9/23, 4:09 PM
it also said me that with mi id
M
Mardroide
OP
•
2/9/23, 4:09 PM
M
Mardroide
OP
•
2/9/23, 4:10 PM
like this i mean
M
Mardroide
OP
•
2/9/23, 4:10 PM
sais the same
M
Mardroide
OP
•
2/9/23, 4:11 PM
o man its different sorry
S
Syjalo
•
2/9/23, 4:11 PM
Oh
, I forgot
. You also need to provide the type if you use ids
.
S
Syjalo
•
2/9/23, 4:11 PM
Import
from discord
.js
M
Mardroide
OP
•
2/9/23, 4:12 PM
same thing
M
Mardroide
OP
•
2/9/23, 4:12 PM
id why
S
Syjalo
•
2/9/23, 4:13 PM
Show your current code
M
Mardroide
OP
•
2/9/23, 4:13 PM
M
Mardroide
OP
•
2/9/23, 4:14 PM
my bad sir
M
Mardroide
OP
•
2/9/23, 4:14 PM
it should be
M
Mardroide
OP
•
2/9/23, 4:17 PM
Now i hace missing permissions xd
M
Mardroide
OP
•
2/9/23, 5:56 PM
No man thats not now the problem
M
Mardroide
OP
•
2/9/23, 5:57 PM
im trying to ban but it sais Missing Permmisions
M
Mardroide
OP
•
2/9/23, 6:02 PM
yeah
, i
'll close this post
, thanks you all
!
.fetch()
.fetch()
OverwriteType
OverwriteType
.set
.set
{
id
:
"id"
,
type
: OverwriteType.Member
}
{
id
:
"id"
,
type
: OverwriteType.Member
}