📜  discord say 命令 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:17.637000             🧑  作者: Mango

代码示例1
client.on('message', message => {
    if (message.content.startsWith(prefix + 'say')) {
        if (message.author.bot) return;
        const SayMessage = message.content.slice(4).trim();
        message.channel.send("**" + SayMessage + "**")
        message.channel.send("- " + `**${message.author}**`)
    }
});