Timeout/Mute Slash Commands | Moderation Bot Ep. 1 | Pycord

Опубликовано: 29 Октябрь 2024
на канале: Digiwind
7,382
73

In this video, we make timeout/mute and unmute/remove timeout slash commands using Discord’s native timeout function. These slash commands are made in Python with Pycord, a maintained fork of Discord.py. Regarding the code, you can find it below as a Github link, I added a few lines to check if the duration is greater than or equal to 28 days, which was added after this video was recorded.

Code used in this video: https://github.com/Digiwind/Digiwind-...

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! This video uses Pycord, a maintained fork of Discord.py more info (and videos) about Pycord is below!

Get started with Discord Slash Commands (Pycord):    • Make Discord Slash Commands with Pyth...  

More Discord Bot Videos:    • Pycord (Discord Bots)  

Moderation Bot Series:    • Moderation Bot with Slash Commands  

Discord Developer Portal:   / discord  
Timeout_for (we used this): https://docs.pycord.dev/en/master/api...
Remove Timeout: 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: git clone https://github.com/Pycord-Development...

My socials:
Discord Server:   / discord  
Twitter (@Digiwind_YT):   / digiwind_yt  
Reddit (u/digiwind_yt):   / digiwind_yt  
Github (Digiwind): https://github.com/Digiwind

Music used in this video:
Lawrence Walther x softy x Tibeauthetraveler - Still Lake
Provided by Lofi Records
Watch:    • Lawrence Walther x softy x Tibeauthet...  
Download/Stream: https://fanlink.to/FloatingintoSerenity

Lawrence Walther x Less Gravity - Intersection
Provided by Lofi Records
Watch:    • Lawrence Walther x Less Gravity - Int...  
Download/Stream: https://fanlink.to/FloatingintoSerenity

Lawrence Walther x Less Gravity - Floating, Drifting
Provided by Lofi Records
Watch:    • Lawrence Walther x Less Gravity - Flo...  
Download/Stream: https://fanlink.to/FloatingintoSerenity

Chapters:
0:00-0:30 Intro and Demo
0:30-01:32 Writing the Code
01:33-05:12 Explaining the Code
05:12-05:56 Testing the Code
05:56-06:24 Outro

#Digiwind #TimeoutCommand #Pycord #MuteCommand #DiscordSlashCommands