mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 09:33:32 +01:00
fix(ApplicationCommandManager): limit permission methods to guilds (#5613)
* fix(ApplicationCommandManager): limit permission methods to guilds * docs: add warn tags * feat: improve error message * style: eslint * chore: make error name more verbose
This commit is contained in:
@@ -109,6 +109,9 @@ const Messages = {
|
||||
|
||||
MEMBER_FETCH_NONCE_LENGTH: 'Nonce length must not exceed 32 characters.',
|
||||
|
||||
GLOBAL_COMMAND_PERMISSIONS:
|
||||
"Permissions for global commands may only be fetched or modified from a guild's application command manager.",
|
||||
|
||||
INTERACTION_ALREADY_REPLIED: 'This interaction has already been deferred or replied to.',
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user