发送多个参数时删除“,”

Remove the "," when sending multiple arguments

module.exports = {
    name: 'say',
    description: 'Makes the Bot say something you want.',
    execute(message, args) {
        if (!args.length) {
            return message.channel.send(You didn't provide me anything to say, ${message.author}!);
        }

        message.channel.send(${args});
    },
};

有没有办法当我说多个词时机器人不会像这样说出来:我,我,这里,你好。有没有办法去掉“,”?

您必须使用 .join() 将数组值连接在一起。

所以你需要做message.channel.send(args.join(' '));