Загрузка...

Make Discord Slash Commands with Python | Pycord

In this video, we make Discord slash commands with Python. In this video, we use Pycord, a maintained fork of Discord.py. If you found this helpful, please consider liking the video and subscribing. If you have any questions, comments, or ideas for me, please comment down below! I'll try to get to every comment as soon as I can. Here's some written information: More Discord bot related videos: https://youtube.com/playlist?list=PLCIQvOC0Sg6a-C4kIjbDX1SEjkme-n1Lh UPDATE: Discord.py is resuming development again. More info here: https://gist.github.com/Rapptz/c4324f17a80c94776832430007ad40e6 Discord.py: Discord.py will stop being maintained in April 2022. Read more here: https://gist.github.com/Rapptz/4a2f62751b9600a31a0d3c78100287f1 Pycord: Since Discord.py is no longer being maintained, I've decided to switch from Discord.py to Pycord, in order to begin developing slash commands (since Discord wants all bots over 100 servers to switch to slash commands by April 2022). Pycord Documentation: https://docs.pycord.dev/en/master/ Pycord Discord: https://discord.gg/pycord Pycord Github: https://github.com/Pycord-Development/pycord Install Pycord (the way I installed it in this video, using git): git clone https://github.com/Pycord-Development/pycord If you're reading this, comment "slash commands ftw" My socials: Discord Server: https://discord.com/invite/M6eFU3HrUn Twitter (@Digiwind_YT): https://twitter.com/Digiwind_YT Reddit (u/digiwind_yt): https://www.reddit.com/user/Digiwind_YT/ Github (Digiwind): https://github.com/Digiwind Text to Emoji Bot Invite: https://discord.com/api/oauth2/authorize?client_id=923450190738890752&permissions=0&scope=bot%20applications.commands Some info about slash commands: it can take up to 24 hours for your slash commands to be applied globally (in all servers that your bot is in). You can define server_ids equal to the server IDs that your bot is in (or the servers you want that specific slash command to work in), and your slash command will be applied instantaneously. Your slash command name cannot have any spaces and must be all lowercased. You can have capitalization and punctuation in your description. If you have any questions (that aren't covered here) about slash commands, feel free to comment below or join the Pycord Discord (above) and ask your question. If you comment, I'll try to get back to you within a day or two. Chapters: 0:00-0:10 Intro 0:10-0:57 Creating and Inviting a Bot 0:57-01:30 Installing Pycord 01:30-01:46 Coding the Bot 01:46-03:03 Code Explanation 03:03-03:35 Getting Token and Channel ID 03:35-04:11 Starting the Bot and a PSA About Tokens 04:11-04:20 Testing the Bot 04:20-04:46 Another Bot with Slash Commands 04:46-4:59 Outro #SlashCommands #Pycord #Discord #Discordpy #Digiwind #wind576 #DiscordBots #discordslashcommands

Видео Make Discord Slash Commands with Python | Pycord автора JavaScript: разработка интернет-платформ
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки