我如何向新会员加入公会发送欢迎消息?
guildMemberAdd
答案 0 :(得分:1)
您可以使用guildMemberAdd向成员client.on('guildMemberAdd', async member => {
await member.send(Embed);
});
发送欢迎消息
{
"id": "category_id_123"
"name": "General",
"parent_id": null,
"childs": [
{
"id": "category_id_124",
"name": "General Knowledge",
"parent_id": "category_id_123",
},
{
"id": "category_id_125",
"name": "Math",
"parent_id": "category_id_123",
},
]
}