Nitsua - Editing a previously ran slash command re...

Editing a previously ran slash command results in an error.
Encountered error on chat input command "hello" at path "/workspace/my-sapphire-bot/src/commands/General/hello.js" DiscordAPIError: Invalid Form Body
data.allowed_mentions.users[1]: The set already contains this value
at RequestHandler.execute (/workspace/my-sapphire-bot/node_modules/.pnpm/discord.js@13.12.0/node_modules/discord.js/src/rest/RequestHandler.js:350:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async RequestHandler.push (/workspace/my-sapphire-bot/node_modules/.pnpm/discord.js@13.12.0/node_modules/discord.js/src/rest/RequestHandler.js:51:14)
at async CommandInteraction.reply (/workspace/my-sapphire-bot/node_modules/.pnpm/discord.js@13.12.0/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:103:5)
at <anonymous> (/workspace/my-sapphire-bot/node_modules/.pnpm/@sapphire+framework@3.1.3/node_modules/@sapphire/framework/src/listeners/application-commands/chat-input/CoreChatInputCommandAccepted.ts:18:19)
at Object.fromAsync (/workspace/my-sapphire-bot/node_modules/.pnpm/@sapphire+result@2.6.0/node_modules/@sapphire/result/src/lib/Result.ts:55:2)
at CoreListener.run (/workspace/my-sapphire-bot/node_modules/.pnpm/@sapphire+framework@3.1.3/node_modules/@sapphire/framework/src/listeners/application-commands/chat-input/CoreChatInputCommandAccepted.ts:14:18)
at Object.fromAsync (/workspace/my-sapphire-bot/node_modules/.pnpm/@sapphire+result@2.6.0/node_modules/@sapphire/result/src/lib/Result.ts:55:2)
at CoreListener._run (/workspace/my-sapphire-bot/node_modules/.pnpm/@sapphire+framework@3.1.3/node_modules/@sapphire/framework/src/lib/structures/Listener.ts:124:18) {
method: 'post',
path: '/interactions/1041951726091120670/<long_text>/callback',
code: 50035,
httpStatus: 400,
requestData: [Object]
}
Encountered error on chat input command "hello" at path "/workspace/my-sapphire-bot/src/commands/General/hello.js" DiscordAPIError: Invalid Form Body
data.allowed_mentions.users[1]: The set already contains this value
at RequestHandler.execute (/workspace/my-sapphire-bot/node_modules/.pnpm/discord.js@13.12.0/node_modules/discord.js/src/rest/RequestHandler.js:350:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async RequestHandler.push (/workspace/my-sapphire-bot/node_modules/.pnpm/discord.js@13.12.0/node_modules/discord.js/src/rest/RequestHandler.js:51:14)
at async CommandInteraction.reply (/workspace/my-sapphire-bot/node_modules/.pnpm/discord.js@13.12.0/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:103:5)
at <anonymous> (/workspace/my-sapphire-bot/node_modules/.pnpm/@sapphire+framework@3.1.3/node_modules/@sapphire/framework/src/listeners/application-commands/chat-input/CoreChatInputCommandAccepted.ts:18:19)
at Object.fromAsync (/workspace/my-sapphire-bot/node_modules/.pnpm/@sapphire+result@2.6.0/node_modules/@sapphire/result/src/lib/Result.ts:55:2)
at CoreListener.run (/workspace/my-sapphire-bot/node_modules/.pnpm/@sapphire+framework@3.1.3/node_modules/@sapphire/framework/src/listeners/application-commands/chat-input/CoreChatInputCommandAccepted.ts:14:18)
at Object.fromAsync (/workspace/my-sapphire-bot/node_modules/.pnpm/@sapphire+result@2.6.0/node_modules/@sapphire/result/src/lib/Result.ts:55:2)
at CoreListener._run (/workspace/my-sapphire-bot/node_modules/.pnpm/@sapphire+framework@3.1.3/node_modules/@sapphire/framework/src/lib/structures/Listener.ts:124:18) {
method: 'post',
path: '/interactions/1041951726091120670/<long_text>/callback',
code: 50035,
httpStatus: 400,
requestData: [Object]
}
1 Reply
Nitsua
Nitsua2y ago
That was just me being dumb on my part. Two @'s to the same person (me)