5UP3R_D1N
5UP3R_D1N
DIAdiscord.js - Imagine an app
Created by 5UP3R_D1N on 7/27/2023 in #djs-questions
Can't send attachment from buffer
i made a bot that preview STL files, but got an error when trying to send the message, Code and error is below
32 replies
DIAdiscord.js - Imagine an app
Created by 5UP3R_D1N on 6/12/2023 in #djs-questions
Select menu weird bahavior
(reposted from #djs-help-v14 due to no respond for 10 minutes) Hello guys, I am back I have a problem getting my dynamic select menu mapping function to work Here's the error
[12-06-2023 12:42:22] Uncaught error
Error: Expected a string primitive
at StringValidator.handle (D:\AOS\Cutie-alpha\node_modules\.pnpm\@sapphire+shapeshift@3.9.2\node_modules\@sapphire\shapeshift\dist\index.js:1715:70)
at StringValidator.parse (D:\AOS\Cutie-alpha\node_modules\.pnpm\@sapphire+shapeshift@3.9.2\node_modules\@sapphire\shapeshift\dist\index.js:212:88)
at validateRequiredSelectMenuParameters (D:\AOS\Cutie-alpha\node_modules\.pnpm\@discordjs+builders@1.6.3\node_modules\@discordjs\builders\dist\index.js:533:21)
at StringSelectMenuBuilder.toJSON (D:\AOS\Cutie-alpha\node_modules\.pnpm\@discordjs+builders@1.6.3\node_modules\@discordjs\builders\dist\index.js:995:5)
at D:\AOS\Cutie-alpha\node_modules\.pnpm\@discordjs+builders@1.6.3\node_modules\@discordjs\builders\dist\index.js:1285:64
at Array.map (<anonymous>)
at ActionRowBuilder.toJSON (D:\AOS\Cutie-alpha\node_modules\.pnpm\@discordjs+builders@1.6.3\node_modules\@discordjs\builders\dist\index.js:1285:35)
at D:\AOS\Cutie-alpha\node_modules\.pnpm\discord.js@14.11.0\node_modules\discord.js\src\structures\MessagePayload.js:136:109
at Array.map (<anonymous>)
at MessagePayload.resolveBody (D:\AOS\Cutie-alpha\node_modules\.pnpm\discord.js@14.11.0\node_modules\discord.js\src\structures\MessagePayload.js:136:49)
[Error object]
{
"name": "Error",
"validator": "s.string"
}
[12-06-2023 12:42:22] Uncaught error
Error: Expected a string primitive
at StringValidator.handle (D:\AOS\Cutie-alpha\node_modules\.pnpm\@sapphire+shapeshift@3.9.2\node_modules\@sapphire\shapeshift\dist\index.js:1715:70)
at StringValidator.parse (D:\AOS\Cutie-alpha\node_modules\.pnpm\@sapphire+shapeshift@3.9.2\node_modules\@sapphire\shapeshift\dist\index.js:212:88)
at validateRequiredSelectMenuParameters (D:\AOS\Cutie-alpha\node_modules\.pnpm\@discordjs+builders@1.6.3\node_modules\@discordjs\builders\dist\index.js:533:21)
at StringSelectMenuBuilder.toJSON (D:\AOS\Cutie-alpha\node_modules\.pnpm\@discordjs+builders@1.6.3\node_modules\@discordjs\builders\dist\index.js:995:5)
at D:\AOS\Cutie-alpha\node_modules\.pnpm\@discordjs+builders@1.6.3\node_modules\@discordjs\builders\dist\index.js:1285:64
at Array.map (<anonymous>)
at ActionRowBuilder.toJSON (D:\AOS\Cutie-alpha\node_modules\.pnpm\@discordjs+builders@1.6.3\node_modules\@discordjs\builders\dist\index.js:1285:35)
at D:\AOS\Cutie-alpha\node_modules\.pnpm\discord.js@14.11.0\node_modules\discord.js\src\structures\MessagePayload.js:136:109
at Array.map (<anonymous>)
at MessagePayload.resolveBody (D:\AOS\Cutie-alpha\node_modules\.pnpm\discord.js@14.11.0\node_modules\discord.js\src\structures\MessagePayload.js:136:49)
[Error object]
{
"name": "Error",
"validator": "s.string"
}
And here's the function code:
54 replies