Relative Content

Tag Archive for pythondiscorddiscord.py

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.

discord.py Giveaway Bot Issue

Everything currently in the code is fine, but on the “You’ve already entered this giveaway!” message there is a “Leave Giveaway” button that lets you leave the giveaway if you already entered it. But the problem is when I press the “Leave Giveaway” button It does not update the 🎉 button label correctly, I’ve tried many thing. Does anybody know a fix?

I want to fetch a data from another python file everytime i execute the other one

I know that whenever i use from my_file_contains_data.py import data_i_want
i can access the data i want and i can use it for ‘if’ statements.
but in ‘my_file_contains_data.py’ file, the ‘data_i_want’ is a variable that can changes.
and when the ‘data_i_want’ changes, it does not change in the main file i work, it always stays the same value in the beginning.