for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
# Copyright Pincer 2021-Present
# Full MIT License can be found in `LICENSE` at the project root.
"""sent when a message is updated in a subscribed text channel"""
from ..core.dispatch import GatewayDispatch
from ..objects import UserMessage
async def message_update_middleware(self, payload: GatewayDispatch):
return "on_message_update", [
UserMessage.from_dict(
{"_client": self, "_http": self.http, **payload.data}
)
]
def export():
return message_update_middleware