Discord.js如何向新会员加入公会发送欢迎消息?

时间:2020-06-11 13:29:08

标签: javascript discord.js

Discord.js版本11.4.2

我如何向新会员加入公会发送欢迎消息?

guildMemberAdd

1 个答案:

答案 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",
    },
]
}