📌  相关文章
📜  slap 用户 discord.js - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:25.952000             🧑  作者: Mango

代码示例1
client.on('message', message => {
    console.log(message.content);
    if (message.content.startsWith(prefix + 'slap')) {
        if (message.mentions.users.first()) {
            message.channel.send(message.author.username + " Slapped " + message.mentions.users.first().username + " With A Palm of Justice!! ")
        } else {
            message.channel.send("Please Mention Who To Slap")
        }
    }
});