Skip to content

alicebot.adapter.mirai.event.notice

通知事件。

class NoticeEvent

Bases: alicebot.adapter.mirai.event.base.MiraiEvent

通知事件

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 NudgeEvent

Bases: alicebot.adapter.mirai.event.notice.NoticeEvent

戳一戳事件

  • Attributes

    • type (Literal['NudgeEvent'])

    • fromId (int)

    • subject (alicebot.adapter.mirai.event.base.Subject)

    • action (str)

    • suffix (str)

    • target (int)

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 FriendEvent

Bases: alicebot.adapter.mirai.event.notice.NoticeEvent

好友事件

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 FriendInputStatusChangedEvent

Bases: alicebot.adapter.mirai.event.notice.FriendEvent

好友输入状态改变

  • Attributes

    • type (Literal['FriendInputStatusChangedEvent'])

    • friend (alicebot.adapter.mirai.event.base.FriendInfo)

    • inputting (bool)

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 FriendNickChangedEvent

Bases: alicebot.adapter.mirai.event.notice.FriendEvent

好友事件

  • Attributes

    • type (Literal['FriendNickChangedEvent'])

    • friend (alicebot.adapter.mirai.event.base.FriendInfo)

    • from (str)

    • to (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 FriendRecallEvent

Bases: alicebot.adapter.mirai.event.notice.FriendEvent

好友消息撤回

  • Attributes

    • type (Literal['FriendRecallEvent'])

    • authorId (int)

    • messageId (int)

    • time (int)

    • operator (int)

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 GroupEvent

Bases: alicebot.adapter.mirai.event.notice.NoticeEvent

群事件

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 GroupBotEvent

Bases: alicebot.adapter.mirai.event.notice.GroupEvent

与 Bot 相关的群事件

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 BotGroupPermissionChangeEvent

Bases: alicebot.adapter.mirai.event.notice.GroupBotEvent

Bot 在群里的权限被改变. 操作人一定是群主

  • Attributes

    • type (Literal['BotGroupPermissionChangeEvent'])

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

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

    • group (alicebot.adapter.mirai.event.base.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 BotMuteEvent

Bases: alicebot.adapter.mirai.event.notice.GroupBotEvent

Bot 被禁言

  • Attributes

    • type (Literal['BotMuteEvent'])

    • operator (alicebot.adapter.mirai.event.base.GroupMemberInfo)

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 BotUnmuteEvent

Bases: alicebot.adapter.mirai.event.notice.GroupBotEvent

Bot 被取消禁言

  • Attributes

    • type (Literal['BotUnmuteEvent'])

    • operator (alicebot.adapter.mirai.event.base.GroupMemberInfo)

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 BotJoinGroupEvent

Bases: alicebot.adapter.mirai.event.notice.GroupBotEvent

Bot加入了一个新群

  • Attributes

    • type (Literal['BotJoinGroupEvent'])

    • group (alicebot.adapter.mirai.event.base.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 BotLeaveEventActive

Bases: alicebot.adapter.mirai.event.notice.GroupBotEvent

Bot 主动退出一个群

  • Attributes

    • type (Literal['BotLeaveEventActive'])

    • group (alicebot.adapter.mirai.event.base.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 BotLeaveEventKick

Bases: alicebot.adapter.mirai.event.notice.GroupBotEvent

Bot 被踢出一个群

  • Attributes

    • type (Literal['BotLeaveEventKick'])

    • group (alicebot.adapter.mirai.event.base.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 BotLeaveEventDisband

Bases: alicebot.adapter.mirai.event.notice.GroupBotEvent

Bot 所在的群被解散

  • Attributes

    • type (Literal['BotLeaveEventDisband'])

    • group (alicebot.adapter.mirai.event.base.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 GroupNoticeEvent

Bases: alicebot.adapter.mirai.event.notice.GroupEvent

其他群事件

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 GroupRecallEvent

Bases: alicebot.adapter.mirai.event.notice.GroupNoticeEvent

群消息撤回

  • Attributes

    • type (Literal['GroupRecallEvent'])

    • authorId (int)

    • messageId (int)

    • time (int)

    • group (alicebot.adapter.mirai.event.base.GroupInfo)

    • operator (Optional[alicebot.adapter.mirai.event.base.GroupMemberInfo])

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 GroupNameChangeEvent

Bases: alicebot.adapter.mirai.event.notice.GroupNoticeEvent

某个群名改变

  • Attributes

    • type (Literal['GroupNameChangeEvent'])

    • origin (str)

    • current (str)

    • group (alicebot.adapter.mirai.event.base.GroupInfo)

    • operator (Optional[alicebot.adapter.mirai.event.base.GroupMemberInfo])

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 GroupEntranceAnnouncementChangeEvent

Bases: alicebot.adapter.mirai.event.notice.GroupNoticeEvent

某群入群公告改变

  • Attributes

    • type (Literal['GroupEntranceAnnouncementChangeEvent'])

    • origin (str)

    • current (str)

    • group (alicebot.adapter.mirai.event.base.GroupInfo)

    • operator (Optional[alicebot.adapter.mirai.event.base.GroupMemberInfo])

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 GroupMuteAllEvent

Bases: alicebot.adapter.mirai.event.notice.GroupNoticeEvent

全员禁言

  • Attributes

    • type (Literal['GroupMuteAllEvent'])

    • origin (bool)

    • current (bool)

    • group (alicebot.adapter.mirai.event.base.GroupInfo)

    • operator (Optional[alicebot.adapter.mirai.event.base.GroupMemberInfo])

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 GroupAllowAnonymousChatEvent

Bases: alicebot.adapter.mirai.event.notice.GroupNoticeEvent

匿名聊天

  • Attributes

    • type (Literal['GroupAllowAnonymousChatEvent'])

    • origin (bool)

    • current (bool)

    • group (alicebot.adapter.mirai.event.base.GroupInfo)

    • operator (Optional[alicebot.adapter.mirai.event.base.GroupMemberInfo])

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 GroupAllowConfessTalkEvent

Bases: alicebot.adapter.mirai.event.notice.GroupNoticeEvent

坦白说

  • Attributes

    • type (Literal['GroupAllowAnonymousChatEvent'])

    • origin (bool)

    • current (bool)

    • group (alicebot.adapter.mirai.event.base.GroupInfo)

    • isByBot (bool)

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 GroupAllowMemberInviteEvent

Bases: alicebot.adapter.mirai.event.notice.GroupNoticeEvent

允许群员邀请好友加群

  • Attributes

    • type (Literal['GroupAllowMemberInviteEvent'])

    • origin (bool)

    • current (bool)

    • group (alicebot.adapter.mirai.event.base.GroupInfo)

    • operator (Optional[alicebot.adapter.mirai.event.base.GroupMemberInfo])

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 GroupMemberEvent

Bases: alicebot.adapter.mirai.event.notice.GroupEvent

群成员相关事件

  • Attributes

    • member (alicebot.adapter.mirai.event.base.GroupMemberInfo)

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 MemberJoinEvent

Bases: alicebot.adapter.mirai.event.notice.GroupMemberEvent

新人入群的事件

  • Attributes

    • type (Literal['MemberJoinEvent'])

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 MemberLeaveEventKick

Bases: alicebot.adapter.mirai.event.notice.GroupMemberEvent

成员被踢出群 (该成员不是Bot)

  • Attributes

    • type (Literal['MemberLeaveEventKick'])

    • operator (Optional[alicebot.adapter.mirai.event.base.GroupMemberInfo])

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 MemberLeaveEventQuit

Bases: alicebot.adapter.mirai.event.notice.GroupMemberEvent

成员主动离群 (该成员不是Bot)

  • Attributes

    • type (Literal['MemberLeaveEventQuit'])

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 MemberCardChangeEvent

Bases: alicebot.adapter.mirai.event.notice.GroupMemberEvent

群名片改动

  • Attributes

    • type (Literal['MemberCardChangeEvent'])

    • origin (str)

    • current (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 MemberSpecialTitleChangeEvent

Bases: alicebot.adapter.mirai.event.notice.GroupMemberEvent

群头衔改动 (只有群主有操作限权)

  • Attributes

    • type (Literal['MemberSpecialTitleChangeEvent'])

    • origin (str)

    • current (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 MemberPermissionChangeEvent

Bases: alicebot.adapter.mirai.event.notice.GroupMemberEvent

成员权限改变的事件 (该成员不是Bot)

  • Attributes

    • type (Literal['MemberPermissionChangeEvent'])

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

    • current (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 MemberMuteEvent

Bases: alicebot.adapter.mirai.event.notice.GroupMemberEvent

群成员被禁言事件 (该成员不是Bot)

  • Attributes

    • type (Literal['MemberMuteEvent'])

    • durationSeconds (int)

    • operator (Optional[alicebot.adapter.mirai.event.base.GroupMemberInfo])

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 MemberUnmuteEvent

Bases: alicebot.adapter.mirai.event.notice.GroupMemberEvent

群成员被取消禁言事件 (该成员不是Bot)

  • Attributes

    • type (Literal['MemberUnmuteEvent'])

    • operator (Optional[alicebot.adapter.mirai.event.base.GroupMemberInfo])

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 MemberHonorChangeEvent

Bases: alicebot.adapter.mirai.event.notice.GroupMemberEvent

群员称号改变

  • Attributes

    • type (Literal['MemberHonorChangeEvent'])

    • action (Literal['achieve', 'lose'])

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 OtherClientEvent

Bases: alicebot.adapter.mirai.event.notice.NoticeEvent

其他客户端事件

  • Attributes

    • client (alicebot.adapter.mirai.event.base.OtherClientSender)

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 OtherClientOnlineEvent

Bases: alicebot.adapter.mirai.event.notice.OtherClientEvent

其他客户端上线

  • Attributes

    • type (Literal['OtherClientOnlineEvent'])

    • kind (Optional[int])

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 OtherClientOfflineEvent

Bases: alicebot.adapter.mirai.event.notice.OtherClientEvent

其他客户端下线

  • Attributes

    • type (Literal['OtherClientOfflineEvent'])

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

Released under the MIT License.