[Solved] how to sent request to discord bot API? [closed]

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 … Read more

[Solved] How to tag users using Discord.JS?

You have two options. You can either use the toString method on the User object, or form the mention yourself using the user’s ID. Here’s an example using toString: client.on(“message”, => { const channel = message.channel; channel.send(message.author.toString()); }); And here’s an example using the ID client.on(“message”, => { const channel = message.channel; channel.send(“<@” + message.author.id … Read more

[Solved] Create Channel Switch Logger

Your bot does not respond because the client is not initialized correctly. You’re creating the client like this: var bot = new Discord.Client({ token: auth.token, // <– autorun: true // <– }); The problem is that these arguments do not exist in discord.js, as stated by the Client docs. To log into your bot, please … Read more