In this video, we make two slash commands: bans and unban. Bans gets the server's bans and unban unbans a member by user ID. A correction to the code is pinned in the comments.
These commands are written in Python with Pycord, a maintained fork of Discord.py that has support for slash commands.
If you have any questions or comments, feel free to comment below or join our Discord (discord.gg/M6eFU3HrUn). If you found this video helpful, consider subscribing, it'll help out the channel! More videos and links about Pycord and Discord bots are below!
Get started with Discord Slash Commands in Python (Pycord): • Make Discord Slash Commands with Python | ...
More Pycord Videos: • Pycord (Discord Bots)
Moderation Bot Series: • Moderation Bot with Slash Commands
Code used in this video: https://github.com/Digiwind/Digiwind-...
Discord Developer Portal: / discord
Pycord Bans Documentation: https://docs.pycord.dev/en/master/api...
Pycord Unban Documentation: https://docs.pycord.dev/en/master/api...
Pycord:
Pycord Documentation: https://docs.pycord.dev/en/master/
Pycord Discord: / discord
Pycord Github: https://github.com/Pycord-Development...
Install Pycord: pip install py-cord
My socials:
Discord Server: / discord
Twitter (@Digiwind_YT): / digiwind_yt
Reddit (u/digiwind_yt): / digiwind_yt
Top.gg: https://top.gg/user/512025208542986241
Github (Digiwind): https://github.com/Digiwind
Music used in this video:
l'Outlander - Willpower
Provided by Lofi Records
Watch: • Video
Download/Stream: https://fanlink.to/Willpower
l'Outlander - Mission
Provided by Lofi Records
Watch: • Video
Download/Stream: https://fanlink.to/Willpower
l'Outlander - Hero
Provided by Lofi Records
Watch: • Video
Download/Stream: https://fanlink.to/Willpower
Chapters:
0:00-0:37 Intro and Demo
0:37-01:29 Imports and Setup
01:29-04:27 Bans Slash Command
04:27-05:39 Unban Slash Command
05:39-06:51 Some Error Handling
06:51-07:25 Testing & Outro
#UnbanCommand #BansCommand #Pycord #Digiwind #SlashCommands #UnbanSlashCommand #BansSlashCommand