![]() To post content to the server the bot only needs “Send Messages” permission: ![]() The bot permissions become visible after this. Now go to OAuth2 settings and choose OAuth2 URL Generator:įirst select “bot” from the scopes. When we are happy with everything, we can hit “Reset Token” button to get the token for the bot. ![]() ![]() The username and the profile picture you set here will be visible on the Discord server when the bot posts content. You can add a new bot after you have created the application: You can ignore all the general settings, though I uploaded a profile picture to make it more pretty ? Log in to the Developer Portal and create a new application: That is where you set up our Discord bot. Discord Server in which you have administrator rights (you can create one for free)įirst part of the magic happens on Discord Developer Portal.Discord account (you can create one for free).Using HTTP actions in Power Automate requires either a trial license or, for example, Power Automate per User plan.You should know how to build very simple flows in Power Automate (basically you should know how to add triggers and actions, how to use dynamic content and how to test flows).To get started, there are some prerequisites: In this blog post I’ll show you how to quickly set up a Discord bot and use Power Automate to post content to your Discord Server. And you know what? It’s really easy to make your own Discord bots using Power Automate. Over the past six months I have grown very fond of it and wanted to see if I could do something fun with the Discord API. In the initial files page of the guide, we cover how to safely store your bot's token in a configuration file.Discord is a popular chat app, especially among gamers. Sounds pretty terrible, right? So make sure to keep your bot's token as safe as possible! Make your bot leave all of the servers it has joined Īll that and much, much more.Kick or ban as many server members as possible.Your bot's token gets leaked somewhere, and now someone else has it. Let's imagine that you have a bot on over 1,000 servers, and it took you many, many months of coding and patience to get it on that amount. Make sure to copy the token if you want your bot to work! # Token leak scenario If it's any shorter and looks more like this: kxbsDRU5UfAaiO7ar9GFMHSlmTwYaIYn, you copied your client secret instead. Tokens look like this: 4MCQywSkoMRRclStW4xAYK7I (don't worry, we immediately reset this token before even posting it here!). If someone does manage to get a hold of your bot's token, they can use your bot as if it were theirs-this means they can perform malicious acts with it. With that said, it is vital that you do not ever share this token with anybody, purposely or accidentally. # What is a token, anyway?Ī token is essentially your bot's password it's what your bot uses to login to Discord. If you happen to lose your bot's token at some point, you need to come back to this page and reset your bot's token again which will reveal the new token, invalidating all old ones. When we ask you to paste your bot's token somewhere, this is the value that you need to put in. Your bot's token will be revealed when you press the "Reset Token" button and confirm. In this panel, you can give your bot a snazzy avatar, set its username, and make it public or private. It explains what your bot token is, as well as the security aspects of it.Īfter creating a bot user, you'll see a section like this: This section is critical, so pay close attention. ![]()
0 Comments
Leave a Reply. |