You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please describe the problem you are having in as much detail as possible:
ApplicationCommand.fetchPermissions() throws DiscordAPIError: Unknown application command permissions when the ApplicationCommand doesn't have its permissions set.
It is important to note that the ApplicationCommands mentioned here are guild-specific (not global).
Include a reproducible code sample here, if possible:
// When fetching permissions from the guild containing ApplicationCommands with and without permissions setGuildApplicationCommandManager.fetchPermissions()// <--- 🟠 Returns an array of ApplicationCommandPermissions for those ApplicationCommands with permissions set.// When ApplicationCommand has its permissions setApplicationCommand.fetchPermissions()// <-- 🟢 Returns an array of ApplicationCommandPermissions// When ApplicationCommand doesn't have permissionsApplicationCommand.fetchPermissions()// <-- 🔴 Throws DiscordAPIError: Unknown application command permissions
Further details:
discord.js version: master
Node.js version: v14.16.0
Operating system: Windows 10 19042.985
Priority this issue should have – please be realistic and elaborate if possible: medium
I have also tested the issue on latest master, commit hash: 73f4114
The text was updated successfully, but these errors were encountered:
Please describe the problem you are having in as much detail as possible:
ApplicationCommand.fetchPermissions()
throwsDiscordAPIError: Unknown application command permissions
when theApplicationCommand
doesn't have its permissions set.It is important to note that the ApplicationCommands mentioned here are guild-specific (not global).
Include a reproducible code sample here, if possible:
Further details:
73f4114
The text was updated successfully, but these errors were encountered: