#await MainGuild.commands.permissions.set([ fullPermissions ]);

1 messages · Page 1 of 1 (latest)

native locust
swift otter
#

alright

#

so

#

first off

native locust
#

Let me show you the code first

swift otter
#

can you paste your definition for fullPermissions again

native locust
swift otter
#

why bother

native locust
#

Doesnt work

swift otter
#

ok

#

can you do mea favor

#

above the

#

await MainGuild.commands.permissions.set([{ fullPermissions }]);

#

do

#

console.log(fullPermissions)

#

and tell me

native locust
#

Sure

#

[ { id: '939283559636668477', permissions: true } ]

swift otter
#

await MainGuild.commands.permissions.set( fullPermissions );

#

try that

native locust
swift otter
#

you might need a type property

#

docs says that its required

native locust
#

My file auto saves btw so it can't be that the file isnt saved

native locust
swift otter
#

is this for a role or a user

native locust
#

role

swift otter
#

oh

#

wait

#

ok i have no idea whaty ou're doing here but

#

@native locust for clarification

#

what arey ou doing

native locust
#

Trying to set permission for a slash command

native locust
swift otter
#

you need a type property yeah

#

since you're doing it per role

#

just put a type: "ROLE"

#

in each object

#

wait

#

ok sorry

#

but im so fucking confused what's going on here

native locust
#

Ahh

#

I think i know why

#

1 sec

swift otter
#

pl

#

ok

#

so

#

docs

native locust
#

Yep

swift otter
#

tell me that for fullPermissions

#

should be an array of <GuildApplicationCommandPermissionData>

native locust
#

I removed the true here

#

at permissions: true

swift otter
#

does it work?

native locust
#

Yea

#

Let me try

swift otter
#

ok thank god

native locust
#

Yep

#

It works perfectly

swift otter
#

that threw me off

native locust
#

I was looking at the code and saw that true and was like, wait a min, this donst make sense here because fullPermissions is declared but not read