mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
So far it has been the case that resolveServer has been returning undefined in the case that the resource was a Message from a TextChannel. This was the case because the conditional returned the value of member "server" in the Message object. The Message object doesn't have a server member though. The fix is to use the "channel" member of the Message object and return its "server" member which was likely the original intention considering the if statement.
8.2 KiB
8.2 KiB