Hosting public bot

Hello there, i would like to ask anyone who is more experience with hosting public bot, how to make it public, simply, like i just need to make my code universal - not my server specific, especially when i am getting guildID - what i do when i host bots for personal use is that i create config file and there i define something like "DISCORD_GUILD_ID: <ID_HERE>" where <ID_HERE> is guild ID of my server, and every time i want to use code further like to get player's ID or whatever i used to get the config value (ID of my guild) and use that, instead, should i just grab the current guildID of the server on which the function of bot is executed? I hope you understand my concerns Thank you in advance to anyone who answer in simple terms - i only hosted discord bots for personal use, how to host them publicly; what to change in code and how to make them public (just share the generated URL with predefined permissions for someone to invite it?)
6 Replies
d.js toolkit
d.js toolkit16mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
@flexyz
@flexyz16mo ago
make your slash commands public (not register guild only register client commands) , on developer page there is a option Public Bot check it and share your url with bot scope
TheJoshua
TheJoshuaOP16mo ago
ok very useful to know, thank you so much
grass
grass16mo ago
what are you using DISCORD_GUILD_ID for? messages didnt show
TheJoshua
TheJoshuaOP16mo ago
sorry, what you wanted to say? also, i don't know is this possible to bump, but if anyone join to read this thread, please leave any info you know that is related to the title! i appreciate it very much
grass
grass16mo ago
are you still having issues?
Want results from more Discord servers?
Add your server