If your bot token is compromised, other users can perform any actions you have permitted it to do. It's important to note that you should only give your bot the roles it requires. Scroll down to Bot Permissions and give our bot the Manage Roles permission: Give your bot a username, and I'm unchecking the Public Bot field so that only we can invite our bot. Once it's created, head to the Bot tab, and click Add Bot. To create a Discord bot, head to the Discord Developer Portal and click on New Application, give it a name and click create! If you don't have one, go ahead and create one now and come back to this guide, because next up, we'll create a bot and invite it to our server! Creating A Discord Bot We'll be using TypeScript and Next.js for this guide so give your app a name and select Next.js for the framework, and TypeScript for the language.įor this guide, we'll assume you already have a Discord server created and a role set up in the server. To get started, we can use the thirdweb CLI npx create app Similar to Collab.Land, we'll ask the user to sign in with their wallet as well as their Discord account on our web application, and ask a bot we create to grant them a role on our server using the Discord API running on a Next.js API route. In this guide, we'll set up a Discord bot that checks if a wallet has an NFT from a collection, and grants them a special role on our Discord server if they do!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |