I reproduce the same line of code as the doc but I get an error.
await guild.commands.permissions.set({ token: 'TotallyRealToken', permissions: [ { id: '123456789012345678', permissions: /* <-- this property is in error */ [{ id: '876543210987654321', type: ApplicationCommandPermissionType.User, permission: false, }], }, ]})
await guild.commands.permissions.set({ token: 'TotallyRealToken', permissions: [ { id: '123456789012345678', permissions: /* <-- this property is in error */ [{ id: '876543210987654321', type: ApplicationCommandPermissionType.User, permission: false, }], }, ]})
Object literal may only specify known properties, but 'permissions' does not exist in type 'ApplicationCommandPermissions'. Did you mean to write 'permission'?
Object literal may only specify known properties, but 'permissions' does not exist in type 'ApplicationCommandPermissions'. Did you mean to write 'permission'?
I'm in version 14.16.2 and I'm using Typescript.
Does anybody know how to solve this issue ? Thanks for your help.