Files
discord.js/lib/Client/Resolver
SooYou fd5c981d83 fix resolveServer undefined when TextChannel
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.
2016-02-06 18:18:00 +01:00
..