You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.
目前能接收的事件比较有限,只有以下 7 种:
AppReadyEvent
AppStartingEvent
AppStoppedEvent
BotFriendRequestedEvent
BotGuildInvitedEvent
BotGuildRequestedEvent
BotMessageReceivedEvent
计划添加以下事件:
BotGuildJoinedEvent
- Bot 加入群组BotGuildLeftEvent
- Bot 退出群组BotGuildMemberJoinedEvent
- 群组成员增加BotGuildMemberLeftEvent
- 群组成员减少CommandParsingEvent
- 指令解析前CommandParsedEvent
- 指令解析后CommandInvokingEvent
- 指令调用前CommandInvokedEvent
- 指令调用后LoggerLoggingEvent
- 日志记录前可以在对应的事件中添加相关方法(如CancelInvocation
)来阻断事件,这样就可以替代 #13 中的中间件概念。已经使用
IsCancelled
属性替代,设置为true
即可取消事件。The text was updated successfully, but these errors were encountered: