Slash commands page is out of date with examples please update. #935
0xdeadc0de
started this conversation in
General
Replies: 1 comment
-
Main issue is that https://discord.js.org/#/docs/main/stable/typedef/ApplicationCommandPermissionData the type field is no longer accepting "discord-api-types": "^0.24.0",
"discord.js": "^13.2.0", in my export const enum ApplicationCommandPermissionTypes {
ROLE = 1,
USER = 2,
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Took me several hours to figure out but the overload is not matching with the permissions.set or add explained at
https://discordjs.guide/interactions/slash-command-permissions.html#user-permissions
anymore. Updated overload with an example can be found at
https://discord.js.org/#/docs/main/stable/class/ApplicationCommandPermissionsManager?scrollTo=set
Beta Was this translation helpful? Give feedback.
All reactions