Skip to content

Commit

Permalink
🐛 fix version 0.34.0
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Dec 11, 2023
1 parent ebe5218 commit 4f33799
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/nonebot_plugin_alconna/uniseg/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -929,20 +929,21 @@ def get_reply(self, index: int = -1) -> Union[Reply, None]:

async def recall(self, delay: float = 0, index: int = -1):
if not self.msg_ids:
return
return self
if delay > 1e-4:
await asyncio.sleep(delay)
try:
msg_id = self.msg_ids[index]
except IndexError:
msg_id = self.msg_ids[0]
if not msg_id:
return
return self
try:
await self.exporter.recall(msg_id, self.bot, self.context)
self.msg_ids.remove(msg_id)
return self
except NotImplementedError:
return
return self

async def edit(
self,
Expand Down

0 comments on commit 4f33799

Please sign in to comment.