Toolkit moderne pour discord.py: composants, containers V2 et modales Discord API
Project description
discord-interactions-py
Toolkit simple pour discord.py, inspire de la logique Discord.js, avec controle direct des payloads Discord API.
Ce que fait le module
- Boutons et selects sans
View - Routing par
custom_id(avec donnees encodees) - Envoi/edition via HTTP Discord direct
- Containers V2 (
ContainerBuilder,SectionBuilder, ...) - Modales modernes (
Label,TextDisplay,RadioGroup,CheckboxGroup,Checkbox)
Installation
pip install levraiberet-discord-interactions
Nom du package PyPI: levraiberet-discord-interactions
Nom d'import Python: discord_interactions
Demarrage rapide
$env:DISCORD_BOT_TOKEN="votre_token"
python examples/01_minimal.py
Exemples (1 fichier = 1 sujet)
examples/01_minimal.pyexamples/02_buttons_routing.pyexamples/03_selects.pyexamples/04_modales_modernes.pyexamples/05_containers_v2.pyexamples/06_signed_custom_ids.py
Validation rapide
Tu peux valider le module en lancant les exemples un par un, selon le sujet a verifier.
python examples/01_minimal.py
python examples/04_modales_modernes.py
Note sur les modales modernes
Format recommande:
- top-level:
Label (18)/TextDisplay (10) Label.component:TextInput (4), selects,FileUpload (19),RadioGroup (21),CheckboxGroup (22),Checkbox (23)
Licence
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file levraiberet_discord_interactions-0.2.4.tar.gz.
File metadata
- Download URL: levraiberet_discord_interactions-0.2.4.tar.gz
- Upload date:
- Size: 60.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7101d34f1d5fe1a610c97e58ac3d17c470dd111b06470e0622edc2049a7e7d1d
|
|
| MD5 |
e86b01e117f24288455783bfdba4130e
|
|
| BLAKE2b-256 |
c6c31ad93d367f9a58fedddb756a57a079fdc8b55c729ce8b01f1902a0340bd0
|
File details
Details for the file levraiberet_discord_interactions-0.2.4-py3-none-any.whl.
File metadata
- Download URL: levraiberet_discord_interactions-0.2.4-py3-none-any.whl
- Upload date:
- Size: 53.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cfeeef41e0e000e7fd0c4aae1d6e1442f79f2fe4caccefd7dbb8c349a9ebb696
|
|
| MD5 |
bf07e03d4e4644ee144e40094df000e4
|
|
| BLAKE2b-256 |
63b6d31545c1d6af86a5bac69925b147c7d4afa99ff0ea92d341f28bb388749c
|