User Install (The new update)
Hello, I am attempting to make my JavaScript d.js Discord Bot work with the new User Install feature (The new update). To do this, I need to modify the
handleCommands
, but this is only found with the normal discord.js framework, which leads me wondering how to add the system to make the new UserInstall feature work with my sapphire framework.
If anyone could assist, I would be grateful!Solution:Jump to solution
they should still work the same way. The only thing is that the commands need to be registered with
inside of the command registry. If youre using the builders i dont think they currently support it, but if youre putting in the raw API data it should work just fine...
11 Replies
Solution
they should still work the same way. The only thing is that the commands need to be registered with
inside of the command registry. If youre using the builders i dont think they currently support it, but if youre putting in the raw API data it should work just fine
yeah nothing for builders for that yet. My bet is you need to be patient for the libraries to be properly updated. https://discord.js.org/docs/packages/builders/main/SlashCommandBuilder:Class
discord.js
discord.js
discord.js is a powerful Node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.
Well, here is my Bot's File Tree
![No description](https://cdn.answeroverflow.com/1220878071276507146/image.png)
![No description](https://cdn.answeroverflow.com/1220878071570239518/image.png)
![No description](https://cdn.answeroverflow.com/1220878071817834567/image.png)
that's all well and good but if DiscordJS doesn't support it yet then it isn't supported yet. Same as KaydaFox said.
Is this using builders?
that should answer it
Ah I see
https://refactoring.guru/design-patterns/builder it's important to know design patterns as a developer :thumbnite:
Builder
Builder is a creational design pattern that lets you construct complex objects step by step. The pattern allows you to produce different types and representations of an object using the same construction code.
So, your saying discord has to add a way for me to make User Installs work?
discordjs*
yes
Will do :cat_hehe:
I see, pretty unfortunate