14 lines
261 B
Go
14 lines
261 B
Go
|
package handler
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"github.com/lonelyevil/kook"
|
||
|
)
|
||
|
|
||
|
// GuildMemberAdd
|
||
|
// @description: 用户加入服务器
|
||
|
// @param ctx
|
||
|
func GuildMemberAdd(ctx *kook.GuildMemberAddContext) {
|
||
|
fmt.Printf("有新用户加入服务器: %s\n", ctx.Extra.UserID)
|
||
|
}
|