How to Add Buttons to Your Discord Message Channel

Sdílet
Vložit
  • čas přidán 1. 11. 2022
  • In this video we look into discord buttons with discordpy 2. We create a simple view that also allows us to disable buttons after our users have interacted with them. Lastly we also handle timeouts for our button components.
    🔗 URLs 🔗
    - discordpy.readthedocs.io/en/s...
    - discordpy.readthedocs.io/en/s...

    🗃️Github Project URL🗃️
    - github.com/richardschwabe/dis...
    🏆About this course🏆
    My updated course: "How to make a discord bot" with discord.py 2.x covers everything you need to know to raise productivity and user activity on your discord server. By following this course you will learn everything you need to create a successful bot. Resulting in a professional, community driven and feature rich successful discord server.
    The initial videos cover all necessary elements to create anything you want with discordpy, this includes:
    - Registering a discord bot and inviting it to your server
    - Setting up the python project with extra logging functionality
    - Introduction to basic discordpy bot command structure
    - Automatically load bot commands from separate files
    - Handling user input with discordpy converters in a bot instance
    - Handling errors during command execution
    - Grouping commands together for better command organisation
    - Creating discordpy COG (command collections)
    - Loading COG extensions automatically from files
    - Creating checks to limit access on bot commands
    - DMs & "only you can see this" messages
    - Hybrid commands to have both custom bot commands but also "SlashCommands"
    - Dedicated Slashcommands
    - Application commands in context menus for Members and Messages
    - Decorators for Slashcommands
    - Transform any user input in Slashcommands
    - Handling autocompletion and filtering of Slashcommand user input
    - Send rich text embeds with pictures, links and tables
    - Create Views with Buttons for even better user interactions
    - Showing Modals with Selects, TextInputs and Buttons
    🎥Playlist 🎥
    • How to create a DISCOR...
    ❤Community❤
    To support the channel and see more tutorials about technologies:
    👉LIKE & SUBSCRIBE to the channel:
    czcams.com/users/subscription_c...
    👉Join us on our discord server: / discord
    🌲My Linktr.ee 🌲
    linktr.ee/richardschwabe
    🗃️Code to my videos can be found on Github: github.com/richardschwabe
    👉Comment below the video for feedback, suggestions, wishes or if you have spotted a mistake!
    🏷️ Tags 🏷️
    how to make a discord bot,python tutorial,discord bot,discord music bot,python discord bot,discord bot maker,discord py,best discord bots 2022,discordpy,discord bot client,create discord bot python,slash commands discord.py,discord py 2.0,create slash commands discord.py,discord.py slash commands,discordpy cogs,discord.py buttons, discord.py tutorial, discord.py tutorial 2023
    © Created by Richard Schwabe with ❤ ©
    Music License: CZcams Audio Library
    Website: www.richardschwabe.de
    All code examples fall under GNU General Public License v3.0
    We do not recommend using code shown in tutorials or on our Github public repository to run in production environment and should be used for education only.
    We cannot be held liable for any damage caused by the code or do not provide any warranty.
  • Věda a technologie

Komentáře • 20

  • @tan2126
    @tan2126 Před rokem

    Great Video ! I finally understand this.
    Thank you Richard

  • @lutipon1
    @lutipon1 Před rokem

    Great video, thank you for great explsinstion! And which fonty family are you using?

  • @Kuro_Oni_Official
    @Kuro_Oni_Official Před 11 měsíci +4

    Can you make a video on how to attach your button to an embed and then when you click the button it refreshes and changes the text in the same embed

  • @Pawlo370
    @Pawlo370 Před 8 dny

    how to make null interaction? it means i don't want do any interactions without error

  • @typer980
    @typer980 Před rokem +7

    Richard Great explaination and video but it would be much better that you add chapters so its much more convenient. Thanks!

  • @Lee-kz6rv
    @Lee-kz6rv Před 11 měsíci +1

    Is there any ways to do it with replit?

  • @Untergrund_Koenig
    @Untergrund_Koenig Před 2 měsíci

    Can you show us how we can use the buttons and selects permanently? Because if the bot reconnects, the buttons and selects are no longer functional :(

  • @creamsn3
    @creamsn3 Před rokem

    how to make the button with link?

  • @tust.
    @tust. Před rokem

    Great video, what I wanted to know is how to make a button only be used by the user who called it

    • @richardschwabe
      @richardschwabe  Před rokem +2

      You can add the user object or id to the view that you create for the buttons and on the button interaction you can check that the interaction user has the same id as the user from the view.

  • @2GoodMath
    @2GoodMath Před 5 měsíci

    Wow

  • @Savedon-131
    @Savedon-131 Před rokem +1

    2:46 What's behind "button:"?

    • @exult1on
      @exult1on Před rokem +1

      Late reply, "button: discord.ui.Button):"

  • @officialdreamplayz
    @officialdreamplayz Před 6 měsíci

    button is not accessed

  • @Leo-kr5rv
    @Leo-kr5rv Před 10 měsíci +1

    What is that logger

    • @dg-1337
      @dg-1337 Před 10 měsíci +1

      The logger was setup in one of the first few videos. He has a playlist for the entire series on his channel and its in the git hub for the description.

  • @officialdreamplayz
    @officialdreamplayz Před 6 měsíci

    interaction failed

  • @spyninj6957
    @spyninj6957 Před 10 měsíci

    it doesn't work