Better interactions with your users thanks to Modals with discord py

Поделиться
HTML-код
  • Опубликовано: 17 ноя 2024

Комментарии • 11

  • @remqsi
    @remqsi Год назад +1

    omg thank you so much for this! i have been trying to find a tutorial for these for… way too long, and you randomly popped up on my home page

  • @biscotty6669
    @biscotty6669 Год назад +5

    Another great video. Just wanted to point out that you can get your channel ID by right-clicking on the channel and choosing "Copy ID" at the bottom. (Developer Mode must be enabled in advanced settings afaik.)

  • @arainboldt
    @arainboldt Год назад +1

    When I decorate the command function with `bot.tree.command` it says that no command is found, but when I decorate with `bot.command` it provides a context object instead of an interaction object. what's the proper way to do this?

  • @PolyShifter
    @PolyShifter Год назад

    just curious, I've seen you do it in multiple other videos, but you are adding an attribute to the class when you specify `feedback_modal.user`, but shouldn't that take place in the `__init__()`? Or is it still safe to do so as you are?

  • @airidasrom583
    @airidasrom583 10 месяцев назад

    is it possible to add drop down in the menu ?

  • @nxr_found9966
    @nxr_found9966 9 месяцев назад

    Hey, how do I make that debug command?

  • @klecakes
    @klecakes Год назад

    when I run the code, I keep getting this error:
    AttributeError: type object 'TextInput' has no attribute 'short'
    I followed your tutorial exactly D:

    • @Verfi
      @Verfi Год назад

      it's textstyle

    • @klecakes
      @klecakes Год назад

      @@Verfi sorry I figured it out ages ago, thanks tho

  • @googanigga
    @googanigga 9 месяцев назад

    when i run the code i got this error:
    Traceback (most recent call last):
    File "c:\Users\gogol\Desktop\bot.py", line 10, in
    class FeedbackModal(discord.ui.Modal, title="Ta des suggestions ?"):
    File "c:\Users\gogol\Desktop\bot.py", line 11, in FeedbackModal
    fb_title = discord.ui.TextInput(style=discord.TextStyle.short,label="Titre",required=False,placeholder="Donne moi un titre wesh")
    AttributeError: module 'discord.ui' has no attribute 'TextInput'
    anyone can help me please ?