Application Commands

[ERROR] ApplicationCommandRegistry[toggle author] Failed to register guild application command with name "Toggle Author" for guild "993567738360496288" DiscordAPIError: Missing Access
at RequestHandler.execute (C:\Users\weila\Documents\Discord Bots\Massive-Automation\node_modules\discord.js\src\rest\RequestHandler.js:350:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at RequestHandler.push (C:\Users\weila\Documents\Discord Bots\Massive-Automation\node_modules\discord.js\src\rest\RequestHandler.js:51:14)
at ApplicationCommandManager.create (C:\Users\weila\Documents\Discord Bots\Massive-Automation\node_modules\discord.js\src\managers\ApplicationCommandManager.js:133:18)
at ApplicationCommandRegistry.createMissingCommand (C:\Users\weila\Documents\Discord Bots\Massive-Automation\node_modules\@sapphire\framework\src\lib\utils\application-commands\ApplicationCommandRegistry.ts:430:19)
at ApplicationCommandRegistry.handleAPICall (C:\Users\weila\Documents\Discord Bots\Massive-Automation\node_modules\@sapphire\framework\src\lib\utils\application-commands\ApplicationCommandRegistry.ts:307:5) {
method: 'post',
path: '/applications/993567738360496288/guilds/993567738360496288/commands',
code: 50001,
httpStatus: 403,
requestData: {
json: {
name: 'Toggle Author',
name_localizations: null,
description: undefined,
description_localizations: null,
type: 3,
options: undefined,
default_permission: true,
default_member_permissions: undefined,
dm_permission: true
},
files: []
}
}
[ERROR] ApplicationCommandRegistry[toggle author] Failed to register guild application command with name "Toggle Author" for guild "993567738360496288" DiscordAPIError: Missing Access
at RequestHandler.execute (C:\Users\weila\Documents\Discord Bots\Massive-Automation\node_modules\discord.js\src\rest\RequestHandler.js:350:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at RequestHandler.push (C:\Users\weila\Documents\Discord Bots\Massive-Automation\node_modules\discord.js\src\rest\RequestHandler.js:51:14)
at ApplicationCommandManager.create (C:\Users\weila\Documents\Discord Bots\Massive-Automation\node_modules\discord.js\src\managers\ApplicationCommandManager.js:133:18)
at ApplicationCommandRegistry.createMissingCommand (C:\Users\weila\Documents\Discord Bots\Massive-Automation\node_modules\@sapphire\framework\src\lib\utils\application-commands\ApplicationCommandRegistry.ts:430:19)
at ApplicationCommandRegistry.handleAPICall (C:\Users\weila\Documents\Discord Bots\Massive-Automation\node_modules\@sapphire\framework\src\lib\utils\application-commands\ApplicationCommandRegistry.ts:307:5) {
method: 'post',
path: '/applications/993567738360496288/guilds/993567738360496288/commands',
code: 50001,
httpStatus: 403,
requestData: {
json: {
name: 'Toggle Author',
name_localizations: null,
description: undefined,
description_localizations: null,
type: 3,
options: undefined,
default_permission: true,
default_member_permissions: undefined,
dm_permission: true
},
files: []
}
}
Solution:
3. Copied the wrong Id
Jump to solution
5 Replies
Acier
Acier2y ago
// Register Slash Command
public override registerApplicationCommands(registry: ChatInputCommand.Registry)
{
registry
.registerContextMenuCommand(builder =>
builder
.setName('Toggle Author')
.setType(ApplicationCommandType.Message)
, {guildIds: ['993567738360496288']})
}
// Register Slash Command
public override registerApplicationCommands(registry: ChatInputCommand.Registry)
{
registry
.registerContextMenuCommand(builder =>
builder
.setName('Toggle Author')
.setType(ApplicationCommandType.Message)
, {guildIds: ['993567738360496288']})
}
Dragonite
Dragonite2y ago
#379 - Registeel
Type(s)
Steel
Abilities
Clear Body and Light Metal
Gender Ratio
Genderless
Evolutionary line
Registeel (No Evolutions)
Base Stats
HP: 80, ATK: 75, DEF: 150, SPA: 75, SPD: 150, SPE: 50 (BST: 580)
External Resources
1 / 4
Favna
Favna2y ago
your bot is missing access to the guild. Could be one of: 1. not in the guild 2. not invited with the applications.commands scope
Solution
Acier
Acier2y ago
3. Copied the wrong Id
Favna
Favna2y ago
Lol
Want results from more Discord servers?
Add your server