Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

how to sent request to discord bot api?

How do I properly send a discord API request, and where do I get a valid token to do that because my discord bot token did not work there ?

async function APIrequest(){

const lib = require('lib')({token: 'wich api key?'});

let result = await lib.discord.channels['@0.3.2'].retrieve({
  channel_id: channelid
});

console.log("result")
console.log(result)
}

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

I assume you’ll find what you are looking for here:
https://discord.com/developers/docs/getting-started#overview

I’ve included some of the info below. Also pay attention to rate limiting as api keys can be revoked if you step outside the guidelines.

Post could have been improved with more details of exactly what you want. Have you checked the docs and been unable to find answers?

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading