#Permissions Salsh Command

1 messages ยท Page 1 of 1 (latest)

white turtle
#

Hello can you explain to me how I can manage to add the 2 permissions to the same command without one deleting the other

const user1 = [{id: idUser1, type: 'USER', permission: true}]
const user2 = [{id: idUser2, type: 'USER', permission: true}]
client.application.commands.permissions.set({ guild: guildId, command: cmdId, permissions: user1 })
client.application.commands.permissions.set({ guild: guildId, command: cmdId, permissions: user2 })
#

Permissions Salsh Command

astral ruin
#

that's what array is for

white turtle
#

?

astral ruin
#

no

white turtle
#

hmm

#

wait

astral ruin
#

make an array

#

i mean

#

an array

white turtle
#
const arr = [
{},
{}
]
astral ruin
white turtle
astral ruin
#

keep in mind role is also an option to add permission

white turtle
#

Anyway thank you very much ๐Ÿ™‚

astral ruin
white turtle
astral ruin
#

here's the ddocs for the permissions

white turtle
#

๐Ÿ‘€

astral ruin
#

there isn't word for limit

#

and you may close the thread ๐Ÿ™‚