![]() Now, let’s look what the new parts of the code are – This is something known as a decorator in Python. command ( name = "my_first_command", description = "This is the first command I made!", scope = the_id_of_your_guild, ) async def my_first_command ( ctx : interactions. Client ( token = "your_secret_bot_token" ). There are plenty of other projects to consider first before this, as aĭiscord bot is not exactly beginner-friendly. Please note that a Discord bot should not be your first project if you’re That’s why we’ve decided to try and make the processĪs streamlined as humanly possible, in order for it to be friendlier to understand for ourįellow bot developers. Now you can go on with running your bot and creating your first commands! Running the Bot and creating commands #īots can be a little confusing to create. Select your guild, click Authorise and your Bot should show up in your guild. When you are done with choosing the permissions, go to the bottom of the page, copy the the url and open it in a new window. You can choose permissions you want to have your bot there. You have to enable the bot and mands scope, to allow your bot to create slash commands.Īfter setting that up, a BOT PERMISSIONS field will appear. Now you have a Bot, but you can’t create commands because it isn’t in any guilds. ![]() This will delete the old token, so your bot can’t be run with it anymore. If you revealed your token, you should immediately go to your Bots application page and click the Regenerate Button under your token. You will need this later to start your Bot.ĭo NOT give this to other persons! They can get full control over your Bot with your token and execute what they want! This is the access token, used to run your bot.
0 Comments
Leave a Reply. |