Discord MODALS in Discord.py are Here!

Опубликовано: 01 Март 2026
на канале: Digiwind
32,341
360

In this video, we make/code a modal with Discord.py in Python.

To make modals, you need to have Discord.py 2.0 (installation instructions below!). If you have any questions or comments feel free to join our Discord (  / discord  ) or comment down below!

Install Discord.py 2.0 (from GitHub):
• Windows (without voice support):
py -m pip install -U git+https://github.com/Rapptz/discord.py

• Windows (with voice support):
git clone git+https://github.com/Rapptz/discord.py
cd discord.py
py -m pip install -U -e .[voice]

• Linux/Mac (without voice support):
python3 -m pip install -U git+https://github.com/Rapptz/discord.py

• Linux/Mac (with voice support):
git clone git+https://github.com/Rapptz/discord.py
cd discord.py
python3 -m pip install -U -e .[voice]

• Note: Make sure you have git installed and have git in your PATH. To check if git is installed and is in your PATH, just do git --version. To install git, visit https://git-scm.com/

Discord.py Modal Documentation: https://discordpy.readthedocs.io/en/m...
Discord.py TextInput Documentation: https://discordpy.readthedocs.io/en/m...
Discord Developer TextInput Documentation (maximum character lengths, etc.): https://discord.com/developers/docs/i...
Embed Limits (Discord Developer Documentation): https://discord.com/developers/docs/r...

Discord.py Discord Server:   / discord  

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

Chapters:
0:00-0:23 Intro & Demo
0:23-0:44 Discord.py 2.0
0:44-01:07 Imports
01:07-02:40 Client & Modal Slash Command
02:40-03:00 Creating a Modal
03:00-03:59 Modal & InputText Documentation
03:59-05:47 Adding a Modal Input & InputText Parameters
05:47-08:05 Handling Modal Submissions
08:05-08:22 Adding the Modal to a Slash Command
08:22-08:32 Token
08:32-08:42 Running the Code
08:42-08:49 Testing the Bot
08:49-09:07 Debugging
09:07-10:04 Testing the Bot (again) & Outro

#Discordpy #DiscordpyModals #Modals #DiscordModals #Digiwind #dpy