mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 05:16:48 +08:00
✏️ fix cqhttp sub_type typo
This commit is contained in:
parent
2574ef3e7a
commit
0a11bd3e8e
@ -521,7 +521,7 @@ class Event(BaseEvent):
|
||||
"""
|
||||
return self._raw_event.get("sub_type")
|
||||
|
||||
@type.setter
|
||||
@sub_type.setter
|
||||
@overrides(BaseEvent)
|
||||
def sub_type(self, value) -> None:
|
||||
self._raw_event["sub_type"] = value
|
||||
|
@ -791,7 +791,7 @@ class Event:
|
||||
def sub_type(self) -> Optional[str]:
|
||||
...
|
||||
|
||||
@type.setter
|
||||
@sub_type.setter
|
||||
def sub_type(self, value) -> None:
|
||||
...
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user