Skip to content

alicebot.adapter.mirai.event.base

事件基类。

class Subject

Bases: pydantic.main.BaseModel

来源

  • Attributes

    • id (int)

    • kind (Literal['Friend', 'Group'])

class FriendInfo

Bases: pydantic.main.BaseModel

好友信息

  • Attributes

    • id (int)

    • nickname (str)

    • remark (str)

class GroupInfo

Bases: pydantic.main.BaseModel

群聊信息

  • Attributes

    • id (int)

    • name (str)

    • permission (Literal['OWNER', 'ADMINISTRATOR', 'MEMBER'])

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)

class OtherClientSender

Bases: pydantic.main.BaseModel

其他客户端信息

  • Attributes

    • id (int)

    • platform (str)

class MiraiEvent

Bases: alicebot.event.Event[MiraiAdapter]

Mirai 事件基类

  • Attributes

    • type (str)

Released under the MIT License.