Relative Content

Tag Archive for pythondiscorddiscord.py

How to change response sent by discord bot with a button

With discord.py, I’m creating a bot that, following a command, sends a sequence of responses with a select menu. Based on the choice made in the menu, it updates the text and the select menu displayed in the response. After 8 select menus, I modify the response again with new text and a “Continue” button. Then, I send a message in the channel. When the user clicks the “Continue” button, it should modify the response again, but at this step, it fails—the response doesn’t update and displays “Interaction failed.”

How to change response sent by discord bot with a button

With discord.py, I’m creating a bot that, following a command, sends a sequence of responses with a select menu. Based on the choice made in the menu, it updates the text and the select menu displayed in the response. After 8 select menus, I modify the response again with new text and a “Continue” button. Then, I send a message in the channel. When the user clicks the “Continue” button, it should modify the response again, but at this step, it fails—the response doesn’t update and displays “Interaction failed.”

Discord.py how to include the person who deleted

So i just made a event both for on_message_delete and on_message_edit
second one works as intended but for first one, i want to make it like Quark Logger; if message deleted by author, no one will mentioned and when message deleted by someone else, it’ll add a field to embed that includes the person who did the action.