![]() ![]() An event is something you listen to and then respond to. discord.py revolves around the concept of events. We use decorators to modify a function.Event decorator is there to register this event as an actual discord event. Now let’s make our bot: import discord intents = () bot = discord.Client(intents=intents)#setting our intents to all #intents EVENTS To set all permission write this: import discord intents = () To set intent on our code we use syntax like this: import discord intents = () intents.typing = False intents.presences = False Privileged intents are intents that are important permissions like kicking,banning etc.To enable Privileged Intents go to your discord developer page and enter your bot’s page: Like reacting to messages,sending messages,etc. ![]() Normal intents are intents that are important but not that serious. Intents are like permissions to your bot. import discordĪfter that we choose our intents to our bot. With that token they can do anything to your bot.įirst we import the library that we need to make a discord bot. ![]() Because that is how discord knows which discord bot are you editing or making. When you make your bot you will be granted with a bot token.copy the link of your bot,paste it and add it to a selected server.After that select your bot’s permissions. To invite your bot go to Oauth2 and select bot option.Add a bot to the new application by going to the “Bot” settings on the left and clicking “Add Bot”.Enter a name (select “Personal” for team unless you’re using Teams).It is a library that allows us to code a discord bot easily.To install discord.py open your terminal and write this: pip install discord.py To make a discord bot we have a library called discord.py. So did you ever wonder how they are made? I think that you all use discord and know about discord bots. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |