SikoticVinyl
SikoticVinyl
DIAdiscord.js - Imagine an app
Created by SikoticVinyl on 12/7/2023 in #djs-questions
String Select Menu data collection
I have built out a String Select Menu that offers two menus, one to pick and item from the database and one to pick a player from the database. I am having issues collecting this information to pass along so that I can create logic in my index.js file to send that item to the players inventory based on the database info selected. Here is my command file for the /senditem command - https://sourceb.in/oHwyy5bicC and this is my index.js - https://sourceb.in/9CYq6ssnQ0 When I run the command I can select the options but I get interaction failed. Nothing shows in the console log when selecting them, only shows that it succesfully got the info from the database -
[nodemon] starting `node bot/index.js`
Ready! Logged in as TTRPGBOT#9189
Executing (default): SELECT 1+1 AS result
Logged into Database!
Executing (default): SELECT `item_id`, `item_name`, `item_description`, `inventory_id` FROM `item` AS `item`;
Executing (default): SELECT `player_id`, `name`, `user`, `password` FROM `player` AS `player`;
[nodemon] starting `node bot/index.js`
Ready! Logged in as TTRPGBOT#9189
Executing (default): SELECT 1+1 AS result
Logged into Database!
Executing (default): SELECT `item_id`, `item_name`, `item_description`, `inventory_id` FROM `item` AS `item`;
Executing (default): SELECT `player_id`, `name`, `user`, `password` FROM `player` AS `player`;
2 replies
DIAdiscord.js - Imagine an app
Created by SikoticVinyl on 11/30/2023 in #djs-questions
New - Modal Support
Hello so I am pretty new to discord.js overall and am trying to work out how to build a modal and was wondering if anyone had some good tips or would be able to address some questions as they come up? I was able to get the modal to come up once but it broke again and I am not sure why. Currently it is giving me some sort of error over modal type? Ill share screens
15 replies