Enum miraie::messages::events::Event[][src]

pub enum Event {
Show variants BotOnlineEvent(BotOnlineEvent), BotOfflineEventActive(BotOfflineEventActive), BotOfflineEventForce(BotOfflineEventForce), BotOfflineEventDropped(BotOfflineEventDropped), BotReloginEvent(BotReloginEvent), FriendInputStatusChangedEvent(FriendInputStatusChangedEvent), FriendNickChangedEvent(FriendNickChangedEvent), BotGroupPermissionChangeEvent(BotGroupPermissionChangeEvent), BotMuteEvent(BotMuteEvent), BotUnmuteEvent(BotUnmuteEvent), BotJoinGroupEvent(BotJoinGroupEvent), BotLeaveEventActive(BotLeaveEventActive), BotLeaveEventKick(BotLeaveEventKick), GroupRecallEvent(GroupRecallEvent), FriendRecallEvent(FriendRecallEvent), GroupNameChangeEvent(GroupNameChangeEvent), GroupEntranceAnnouncementChangeEvent(GroupEntranceAnnouncementChangeEvent), GroupMuteAllEvent(GroupMuteAllEvent), GroupAllowAnonymousChatEvent(GroupAllowAnonymousChatEvent), GroupAllowConfessTalkEvent(GroupAllowConfessTalkEvent), GroupAllowMemberInviteEvent(GroupAllowMemberInviteEvent), MemberJoinEvent(MemberJoinEvent), MemberLeaveEventKick(MemberLeaveEventKick), MemberLeaveEventQuit(MemberLeaveEventQuit), MemberCardChangeEvent(MemberCardChangeEvent), MemberSpecialTitleChangeEvent(MemberSpecialTitleChangeEvent), MemberPermissionChangeEvent(MemberPermissionChangeEvent), MemberMuteEvent(MemberMuteEvent), MemberUnmuteEvent(MemberUnmuteEvent), MemberHonorChangeEvent(MemberHonorChangeEvent), NewFriendRequestEvent(NewFriendRequestEvent), MemberJoinRequestEvent(MemberJoinRequestEvent), BotInvitedJoinGroupRequestEvent(BotInvitedJoinGroupRequestEvent), CommandExecutedEvent(CommandExecutedEvent),
}
Expand description

事件,如管理员收到的加群请求等

Variants

BotOnlineEvent(BotOnlineEvent)

Bot登录成功

BotOfflineEventActive(BotOfflineEventActive)

Bot主动离线

BotOfflineEventForce(BotOfflineEventForce)

Bot被挤下线

BotOfflineEventDropped(BotOfflineEventDropped)

Bot被服务器断开或因网络问题而掉线

BotReloginEvent(BotReloginEvent)

Bot主动重新登录

FriendInputStatusChangedEvent(FriendInputStatusChangedEvent)

好友输入状态改变

FriendNickChangedEvent(FriendNickChangedEvent)

好友昵称改变

BotGroupPermissionChangeEvent(BotGroupPermissionChangeEvent)

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

BotMuteEvent(BotMuteEvent)

Bot被禁言

BotUnmuteEvent(BotUnmuteEvent)

Bot被取消禁言

BotJoinGroupEvent(BotJoinGroupEvent)

Bot加入了一个新群

BotLeaveEventActive(BotLeaveEventActive)

Bot主动退出一个群

BotLeaveEventKick(BotLeaveEventKick)

Bot被踢出一个群

GroupRecallEvent(GroupRecallEvent)

群消息撤回

FriendRecallEvent(FriendRecallEvent)

好友消息撤回

GroupNameChangeEvent(GroupNameChangeEvent)

某个群名改变

GroupEntranceAnnouncementChangeEvent(GroupEntranceAnnouncementChangeEvent)

某群入群公告改变

GroupMuteAllEvent(GroupMuteAllEvent)

全员禁言状态改变

GroupAllowAnonymousChatEvent(GroupAllowAnonymousChatEvent)

匿名聊天状态改变

GroupAllowConfessTalkEvent(GroupAllowConfessTalkEvent)

坦白说状态改变

GroupAllowMemberInviteEvent(GroupAllowMemberInviteEvent)

允许群员邀请好友加群

MemberJoinEvent(MemberJoinEvent)

新人入群的事件

MemberLeaveEventKick(MemberLeaveEventKick)

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

MemberLeaveEventQuit(MemberLeaveEventQuit)

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

MemberCardChangeEvent(MemberCardChangeEvent)

群名片改动

MemberSpecialTitleChangeEvent(MemberSpecialTitleChangeEvent)

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

MemberPermissionChangeEvent(MemberPermissionChangeEvent)

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

MemberMuteEvent(MemberMuteEvent)

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

MemberUnmuteEvent(MemberUnmuteEvent)

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

MemberHonorChangeEvent(MemberHonorChangeEvent)

群员称号改变

NewFriendRequestEvent(NewFriendRequestEvent)

添加好友申请

MemberJoinRequestEvent(MemberJoinRequestEvent)

用户入群申请(Bot需要有管理员权限)

BotInvitedJoinGroupRequestEvent(BotInvitedJoinGroupRequestEvent)

Bot被邀请入群申请

CommandExecutedEvent(CommandExecutedEvent)

命令被执行

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.