From 4f3379992b255047beff0c55e943d5a7db6a4f34 Mon Sep 17 00:00:00 2001 From: RF-Tar-Railt <3165388245@qq.com> Date: Mon, 11 Dec 2023 20:28:43 +0800 Subject: [PATCH] :bug: fix version 0.34.0 --- src/nonebot_plugin_alconna/uniseg/message.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/nonebot_plugin_alconna/uniseg/message.py b/src/nonebot_plugin_alconna/uniseg/message.py index f43fb34..3dcb8c0 100644 --- a/src/nonebot_plugin_alconna/uniseg/message.py +++ b/src/nonebot_plugin_alconna/uniseg/message.py @@ -929,7 +929,7 @@ 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: @@ -937,12 +937,13 @@ async def recall(self, delay: float = 0, index: int = -1): 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,