Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in streams refresh: TypeError: fields.flat is not a function #28

Closed
YTNico71 opened this issue Jun 4, 2021 · 1 comment
Closed

Comments

@YTNico71
Copy link

YTNico71 commented Jun 4, 2021

[StreamActivity] Update current activity: watching YTNico7171. [TwitchMonitor] Error in streams refresh: TypeError: fields.flat is not a function at Function.normalizeFields (/home/ytnico7171/timbot-master/node_modules/discord.js/src/structures/MessageEmbed.js:450:8) at MessageEmbed.addFields (/home/ytnico7171/timbot-master/node_modules/discord.js/src/structures/MessageEmbed.js:266:42) at MessageEmbed.addField (/home/ytnico7171/timbot-master/node_modules/discord.js/src/structures/MessageEmbed.js:257:17) at Function.createForStream (/home/ytnico7171/timbot-master/live-embed.js:29:16) at TwitchMonitor.onChannelLiveUpdate (/home/ytnico7171/timbot-master/index.js:492:32) at Function.handleChannelLiveUpdate (/home/ytnico7171/timbot-master/twitch-monitor.js:220:21) at Function.handleStreamList (/home/ytnico7171/timbot-master/twitch-monitor.js:182:23) at TwitchApi.fetchStreams.then (/home/ytnico7171/timbot-master/twitch-monitor.js:95:24) at process._tickCallback (internal/process/next_tick.js:68:7)

i need help please

@roydejong
Copy link
Owner

Duplicate of #26.

This most likely means you are using an older version of Node.js, try updating to v12.
See: https://stackoverflow.com/a/61034427/1410310

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants