Adding Moderators & Removing Users | Ticketing in Discord.py (Part 3)

Опубликовано: 01 Октябрь 2024
на канале: Digiwind
2,176
27

In this video, we continue the ticketing with buttons in discord.py series. Building on what we coded in the first two episodes, we add a ticket moderator feature that allows a role to see tickets and a remove slash command - to remove added users from a ticket.

NOTE: at 05:04, the response saying that a user has been removed from the ticket should not be ephemeral (you can remove the ephemeral declaration, altogether, or you can set ephemeral = False).

Discord.py Ticketing Series:    • Ticketing in Discord.py (with Buttons)  

More discord.py videos:    • discord.py  

Install discord.py v2.0: pip install discord.py

Documentation:
discord.ui.View: https://discordpy.readthedocs.io/en/l...
discord.ui.button: https://discordpy.readthedocs.io/en/l...
set_permissions: https://discordpy.readthedocs.io/en/l...

Discord Server:   / discord  
Twitter (@Digiwind_YT):   / digiwind_yt  
Top.gg: https://top.gg/user/512025208542986241
GitHub (Digiwind): https://github.com/Digiwind
Official Discord.py Server: discord.gg/dpy

Chapters:
0:00-0:54 Intro & Demo
0:54-02:31 For Public Bots: Methods to Store Ticket Moderator Role IDs
02:31-02:42 For Private Bots: Ticket Moderator Client Variable
02:42-03:04 Getting the Ticket Moderator Role
03:04-03:22 Overwrites
03:22-03:29 Mentioning the Ticket Moderator Role
03:29-03:41 Channel Creation Error Handling
03:41-03:52 Remove Slash Command
03:52-05:19 Remove Slash Command Callback
05:19-05:50 Running the Code and Testing It
05:50-06:07 Debugging
06:07-06:39 Retesting
06:39-07:03 Future Features & Outro

#discordpy #dpy #digiwind #ticketing #ticketingsystem #ticketingbot #pythonprogramming