jonathonor / syncBot

A bot that syncs roles between multiple discord servers.
https://www.jonsbots.com/syncBot
30 stars 17 forks source link

TypeError: client.guilds.find is not a function #1

Closed RuisSoftware closed 3 years ago

RuisSoftware commented 4 years ago

C:\Bots\syncBot\run.js:52 const guild1 = client.guilds.find(guild => guild.id === config.server1id); ^

TypeError: client.guilds.find is not a function at Timeout.setTimeout [as _onTimeout] (C:\Bots\syncBot\run.js:52:42) at ontimeout (timers.js:436:11) at tryOnTimeout (timers.js:300:5) at listOnTimeout (timers.js:263:5) at Timer.processTimers (timers.js:223:10)

jonathonor commented 3 years ago

This is due to a newer version of discord.js, and I failed to note the version that this bot worked on. I have tagged the initial release, and am working on bringing the bot up to date with latest version of discord.js and node.js

discord.js version = 13.2.0 node.js version = 16.11.1