Comments (2)
You have to build your own.
I am using express.js for example.
You just need a way to handle your endpoints.
example:
app.get('/guilds/:guildId', async (req, res) => {
if(!await checkSession(req)) return res.status(401).json({error: 'Unauthorized'});
const guild = client.guilds.cache.get(req.params.guildId);
console.log('called')
if (!guild) {
return res.status(404).json({ error: 'Guild not found' });
}
guild.enabledFeatures = ['welcome-message']
res.json(guild).status(200);
});
Not sure if it still helps you, since it's been almost 3 months since then, but hey :)
from discord-bot-dashboard-next.
In the backend section there's a link for the example written in typescript, you can start off from that.
from discord-bot-dashboard-next.
Related Issues (20)
- Language system doesnt works HOT 3
- Refusing to connect HOT 4
- Why is there no way to save the "guild settings"? HOT 1
- {"client_id": ["Value \"\" is not snowflake."]} HOT 1
- Multi Channel Select HOT 1
- facing issue to host backend server HOT 3
- Return error HOT 1
- Trying to figure out backend server HOT 1
- Guilds dont load HOT 9
- Default export is deprecated HOT 1
- Error while Authenticating HOT 1
- Save is not saving HOT 1
- Unsure how to start this HOT 1
- Feature page stuck on "Loading" HOT 4
- Forms' States (isRequired, isDisabled, ...)
- ws cant connect
- Small tutorial on how to make our own module/page?
- Demo not working HOT 3
- use design on other project? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discord-bot-dashboard-next.