mirror of
https://github.com/maubot/maubot.git
synced 2024-10-01 01:06:10 -04:00
Add shortcut for redact in MaubotMessageEvent
This commit is contained in:
parent
d574f84079
commit
fbacad8676
@ -123,6 +123,9 @@ class MaubotMessageEvent(MessageEvent):
|
||||
def react(self, key: str) -> Awaitable[EventID]:
|
||||
return self.client.react(self.room_id, self.event_id, key)
|
||||
|
||||
def redact(self, reason: str | None = None) -> Awaitable[EventID]:
|
||||
return self.client.redact(self.room_id, self.event_id, reason=reason)
|
||||
|
||||
def edit(
|
||||
self,
|
||||
content: str | MessageEventContent,
|
||||
|
Loading…
Reference in New Issue
Block a user