Skip to content

Commit

Permalink
🐛 特别处理Reply的__len__方法
Browse files Browse the repository at this point in the history
  • Loading branch information
AzideCupric committed Dec 27, 2023
1 parent e9ffd12 commit 879fa01
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nonebot_plugin_saa/types/common_message_segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,6 @@ def __init__(self, message_id: MessageId):

super().__init__()
self.data = message_id

def __len__(self) -> int:
return 1 # 仅占一个消息段 FIXME: Reply的data应该统一为dict,而不是MessageId

0 comments on commit 879fa01

Please sign in to comment.