alicebot.adapter.mirai.event.base
事件基类。
class Subject
Bases: pydantic.main.BaseModel
来源
Attributes
id (int)
kind (Literal['Friend', 'Group'])
method __init__(__pydantic_self__, **data)
{#BaseModel.__init__}
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
__init__
uses __pydantic_self__
instead of the more common self
for the first arg to allow self
as a field name.
Arguments
- data (Any)
Returns
Type: None
class FriendInfo
Bases: pydantic.main.BaseModel
好友信息
Attributes
id (int)
nickname (str)
remark (str)
method __init__(__pydantic_self__, **data)
{#BaseModel.__init__}
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
__init__
uses __pydantic_self__
instead of the more common self
for the first arg to allow self
as a field name.
Arguments
- data (Any)
Returns
Type: None
class GroupInfo
Bases: pydantic.main.BaseModel
群聊信息
Attributes
id (int)
name (str)
permission (Literal['OWNER', 'ADMINISTRATOR', 'MEMBER'])
method __init__(__pydantic_self__, **data)
{#BaseModel.__init__}
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
__init__
uses __pydantic_self__
instead of the more common self
for the first arg to allow self
as a field name.
Arguments
- data (Any)
Returns
Type: None
class GroupMemberInfo
Bases: pydantic.main.BaseModel
群成员信息
Attributes
id (int)
memberName (str)
permission (Literal['OWNER', 'ADMINISTRATOR', 'MEMBER'])
specialTitle (str)
joinTimestamp (int)
lastSpeakTimestamp (int)
muteTimeRemaining (int)
group (GroupInfo)
method __init__(__pydantic_self__, **data)
{#BaseModel.__init__}
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
__init__
uses __pydantic_self__
instead of the more common self
for the first arg to allow self
as a field name.
Arguments
- data (Any)
Returns
Type: None
class OtherClientSender
Bases: pydantic.main.BaseModel
其他客户端信息
Attributes
id (int)
platform (str)
method __init__(__pydantic_self__, **data)
{#BaseModel.__init__}
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
__init__
uses __pydantic_self__
instead of the more common self
for the first arg to allow self
as a field name.
Arguments
- data (Any)
Returns
Type: None
class MiraiEvent
Bases: alicebot.event.Event[MiraiAdapter]
Mirai 事件基类
Attributes
- type (str)
method __init__(__pydantic_self__, **data)
{#BaseModel.__init__}
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
__init__
uses __pydantic_self__
instead of the more common self
for the first arg to allow self
as a field name.
Arguments
- data (Any)
Returns
Type: None