Closed Godwhitelight closed 1 year ago
Im doing the same thing at it works fine for me, try updating to the development version using
pip uninstall discord.py-self
pip install git+https://github.com/dolfies/discord.py-self.git
Im doing the same thing at it works fine for me, try updating to the development version using
pip uninstall discord.py-self
pip install git+https://github.com/dolfies/discord.py-self.git
could i speak to u via discord? itsgodwhitelight
This usually happens when a user does an interaction, whether that be use slash commands, click buttons, submit modals, etc. The bot has an option to defer the reaction. After deferring, the reaction can be followed up by a new message or edited for the next 15 minutes, as opposed to 3 seconds without deferring. When sent, the message content is an empty string. Later, an edit request is sent which changes the message. You should be listening to message edit events for this.
The bot has an option to defer the reaction. After deferring, the reaction can be followed up by a new message or edited for the next 15 minutes, as opposed to 3 seconds without deferring. When sent, the message content is an empty string. Later, an edit request is sent which changes the message. You should be listening to message edit events for this.
This is correct.
Summary
Some messages have empty content
Reproduction Steps
a specific bot message gives empty content messages but he does send content the second message has empty content when I get it on the on_message event. It happens only on that specific message that the bot sending. It does not happen on every image
Code
Expected Results
the if should return True and do the thingy
Actual Results
message.content is empty and thus not getting on the if
System Information
❯ python -m discord -v
Checklist
Additional Information
I was hoping you could fix it ASAP or give other libs that might work instead