We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe25bbf commit d2d2f3eCopy full SHA for d2d2f3e
1 file changed
docs/start/coding.md
@@ -41,10 +41,10 @@ func main() {
41
Url: "localhost:4000",
42
})
43
bot := nsx.Default(driver)
44
- pvt := nsx.OnEvent[types.EventPvtMsg](bot)
+ pvt := nsx.OnEvent[event.PrivateMessage](bot)
45
46
adminuin, _ := strconv.ParseInt(os.Getenv("ADMIN_UIN"), 10, 64)
47
- pvt.Handle(func(ctx *nsx.Context[types.EventPvtMsg]) {
+ pvt.Handle(func(ctx *nsx.Context[event.PrivateMessage]) {
48
ctx.Msg.Reply(ctx, "测试")
49
}, filter.OnlyUsers(adminuin))
50
0 commit comments