Skip to content

Commit

Permalink
让类型好看点qw
Browse files Browse the repository at this point in the history
  • Loading branch information
Decrabbityyy committed Aug 9, 2024
1 parent 6d3ba11 commit 8e564f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/nonebot_plugin_alconna/uniseg/adapters/qq/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ async def send_to(self, target: Union[Target, Event], bot: Bot, message: Message
# 私信需要使用 post_dms_messages
# https://bot.q.qq.com/wiki/develop/api/openapi/dms/post_dms_messages.html#%E5%8F%91%E9%80%81%E7%A7%81%E4%BF%A1
return await bot.send_to_dms(
guild_id=dms.guild_id,
guild_id=dms.guild_id, # type: ignore
message=message,
msg_id=target.source,
**kwargs, # type: ignore
Expand Down Expand Up @@ -429,7 +429,7 @@ async def recall(self, mid: Any, bot: Bot, context: Union[Target, Event]):
group_openid=context.id,
message_id=mid.id, # type: ignore
)
else:
elif isinstance(context, GroupAtMessageCreateEvent):
await bot.delete_group_message(
group_openid=context.group_openid,
message_id=mid.id, # type: ignore
Expand All @@ -441,7 +441,7 @@ async def recall(self, mid: Any, bot: Bot, context: Union[Target, Event]):
openid=context.id,
message_id=mid.id, # type: ignore
)
else:
elif isinstance(context, C2CMessageCreateEvent):
await bot.delete_c2c_message(
openid=context.author.id,
message_id=mid.id, # type: ignore
Expand Down

0 comments on commit 8e564f5

Please sign in to comment.