ashie
ashie
DIAdiscord.js - Imagine an app
Created by ashie on 7/3/2023 in #djs-questions
fetching command choices
hihi! i have a bit of a complicated command https://gist.github.com/ash-development/51b240f1db0e10b37994b6024263dc52 i have built this command of a previous one i built, but the main change is the team "option". i am currently getting the below error when trying to load the command:
CombinedPropertyError (1)
Received one or more errors

input[0]
| CombinedPropertyError (2)
| Received one or more errors
|
| input.name
| | MissingPropertyError > name
| | A required property is missing
|
| input.value
| | MissingPropertyError > value
| | A required property is missing

at ArrayValidator.handle (C:\Users\Ty\IdeaProjects\mainBot\node_modules\@sapphire\shapeshift\dist\index.js:473:70)
at ArrayValidator.parse (C:\Users\Ty\IdeaProjects\mainBot\node_modules\@sapphire\shapeshift\dist\index.js:212:88)
at MixedClass.addChoices (C:\Users\Ty\IdeaProjects\mainBot\node_modules\@discordjs\builders\dist\index.js:1763:22)
at C:\Users\Ty\IdeaProjects\mainBot\src\commands\team.js:16:18
at MixedClass._sharedAddOptionMethod (C:\Users\Ty\IdeaProjects\mainBot\node_modules\@discordjs\builders\dist\index.js:2080:50)
at MixedClass.addStringOption (C:\Users\Ty\IdeaProjects\mainBot\node_modules\@discordjs\builders\dist\index.js:2052:17)
at Object.<anonymous> (C:\Users\Ty\IdeaProjects\mainBot\src\commands\team.js:11:10)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
at Module.load (node:internal/modules/cjs/loader:1037:32)
CombinedPropertyError (1)
Received one or more errors

input[0]
| CombinedPropertyError (2)
| Received one or more errors
|
| input.name
| | MissingPropertyError > name
| | A required property is missing
|
| input.value
| | MissingPropertyError > value
| | A required property is missing

at ArrayValidator.handle (C:\Users\Ty\IdeaProjects\mainBot\node_modules\@sapphire\shapeshift\dist\index.js:473:70)
at ArrayValidator.parse (C:\Users\Ty\IdeaProjects\mainBot\node_modules\@sapphire\shapeshift\dist\index.js:212:88)
at MixedClass.addChoices (C:\Users\Ty\IdeaProjects\mainBot\node_modules\@discordjs\builders\dist\index.js:1763:22)
at C:\Users\Ty\IdeaProjects\mainBot\src\commands\team.js:16:18
at MixedClass._sharedAddOptionMethod (C:\Users\Ty\IdeaProjects\mainBot\node_modules\@discordjs\builders\dist\index.js:2080:50)
at MixedClass.addStringOption (C:\Users\Ty\IdeaProjects\mainBot\node_modules\@discordjs\builders\dist\index.js:2052:17)
at Object.<anonymous> (C:\Users\Ty\IdeaProjects\mainBot\src\commands\team.js:11:10)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
at Module.load (node:internal/modules/cjs/loader:1037:32)
any help would be greatly appreaciated ^~^
86 replies
DIAdiscord.js - Imagine an app
Created by ashie on 6/20/2023 in #djs-questions
messages not being read?
hello! i have the following code and when i use the command it does not run the code under it, so i added the line to log any messages captured by the bot and none are being found! the bot is online and running in the server https://gist.github.com/ash-development/70cdf741dd81efaf8c147f011790db50
18 replies
DIAdiscord.js - Imagine an app
Created by ashie on 12/16/2022 in #djs-questions
give roles off arguments in an array
hello! i am currently looking to give roles off a spreadsheet. i have used csvtojson to convert the spreadsheet to a json array (stored in jsonArray). i am looking to take the array and apply discord roles off the usernames and roles in it. below I have provided an example of what the array looks like
{"Discord":"Takumi#5946","Team":"Lenny Time","Individual":"78.27%","Individual?":"FALSE","% Calculator":"85.57%","Rank":"Premier"},
{"Discord":"Takumi#5946","Team":"Lenny Time","Individual":"78.27%","Individual?":"FALSE","% Calculator":"85.57%","Rank":"Premier"},
10 replies