nothingg
DIAdiscord.js - Imagine an app
•Created by Nachdeule on 8/12/2023 in #djs-questions
Is it possible to create the backend of a dashboard with discord JS?
makes sense when considering size
16 replies
DIAdiscord.js - Imagine an app
•Created by Nachdeule on 8/12/2023 in #djs-questions
Is it possible to create the backend of a dashboard with discord JS?
Thanks for the info!
The tutorial is using a bearer token from oauth
16 replies
DIAdiscord.js - Imagine an app
•Created by Nachdeule on 8/12/2023 in #djs-questions
Is it possible to create the backend of a dashboard with discord JS?
I was curious what most dashboard devs do. Combine the bot and dashboard api which shares cache and can use the gateway? Or separate the processes and have the dashboard api make calls directly to the discord api? The tutorial I watched did the latter
16 replies
DIAdiscord.js - Imagine an app
•Created by Nachdeule on 8/12/2023 in #djs-questions
Is it possible to create the backend of a dashboard with discord JS?
I agree. My thought was that by combining the bot and the dashboard api, the bot gains a new attack vector that it previously didn't have
16 replies
DIAdiscord.js - Imagine an app
•Created by Nachdeule on 8/12/2023 in #djs-questions
Is it possible to create the backend of a dashboard with discord JS?
if the dashboard api is sending data from the bot websocket process, an attack on the api could now take down both the bot and the dashboard api. I know this probably isn't very likely but it seems to me that running the dashboard api with the bot would add a new attack vector to the bot since it now needs to handle both traffic.
16 replies
DIAdiscord.js - Imagine an app
•Created by Nachdeule on 8/12/2023 in #djs-questions
Is it possible to create the backend of a dashboard with discord JS?
Is this how most dashboards are setup? I guess the advantage is that I'd be able to use cached data and the discord.js library to build an api that the dashboard front end talks to. Then I could avoid writing separate code to interact with the discord api.
Would a disadvantage be that, if the bot goes down, the bot's api is also down with it? Also, wouldn't this open up more attack vectors if the api isn't properly protected against ddos? This would be an issue either way but at least a separated api wouldn't also take down the bot.
Forgive the ignorance, learning about dashboards as well and appreciate any response
16 replies