类型错误:无法读取未定义的属性“推送”,我该如何解决?

时间:2021-03-09 10:41:59

标签: discord.js

<块引用>

UnhandledPromiseRejectionWarning: TypeError: 无法读取未定义的属性 'push'

// Push client-related activities
client.activities.push(
    { text: () => `${formatNumber(client.guilds.cache.size)} servers`, type: 'WATCHING' },
    { text: () => `with ${formatNumber(client.registry.commands.size)} commands`, type: 'PLAYING' },
    { text: () => `${formatNumber(client.channels.cache.size)} channels`, type: 'WATCHING' }
);

0 个答案:

没有答案