Bot token discord . It says: discord. LoginFailure: Improper token has been passed. Final code: I'm following a basic tutorial for a Python Discord bot on YouTube and my code is underneath. errors. Hey there, I have decided to start looking into making a python discord bot and I decided to invest some time looking into the free code camp course showing how to get the basics down. Just regenerate a new token for your bot and you should be good to go. But I can still run a second program, which uses the same OAuth token, at the same time as the first one. I have a . I know that the bot is using OAuth to make sure the source of the commands (in this case my Java code with the right login token) is authorized. I'm currently trying to create a bot for Discord. The bot token provided is accurate (An incorrect token results in a different error). client logging in using static token Traceback (most recent cal to const client = new Discord. Check this to see how to get your token. ales a revoked token is a token that has been made unusable by Discord for several reasons: inactivity, spam or malicious behaviour. – Learning to write a Discord bot. It's only having an issue when I'm calling it from the . run(KEY_HERE) it connects just fine, no errors. The bot is already present on the server. The bot has the appropriate permissions (Incorrect permissions lead to a different error). Client({ intents: ["GUILDS", "GUILD_MESSAGES"] }) (You can add more intents if you want, these are just the basic ones) You will also need to get your bot token and replace "token" in client. There, you'll see a section called 'Token' under the bot username. env file set up for my bot secret key, but am getting discord. env file. Before anyone asks, yes I have put in the bot token, not the id or secret. First, create a Discord application here. Only one application is being used for both obtaining the access token and attempting to join the guild. Once you've done that, click 'Bot' on the sidebar and create a bot for that application. @c. @c. You can use the Discord API. For some reason the token gives me this error: 2022-11-02 04:42:10 INFO discord. Copy this and store it somewhere secure. It is important to never share your token. I'm sending a request to the route GET https://dis I have written a Discord bot using JDA (Java-Discord-API), which is added to one of my servers. My problem i I'm trying to get information about a bot using the bot token, like the way to get user, passing on the header Authorization: Bearer ${userToken}. If I put the secret key directly into the client. login('token'); with your bot token. alsm jyu kmxua dls jqrm jimhez rwku iuwpz cnf qtzmo