Merge pull request #178 from SooYou/indev

fix resolveServer undefined when TextChannel
This commit is contained in:
abalabahaha
2016-02-06 09:27:08 -08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -96,7 +96,7 @@ var Resolver = (function () {
}
if (resource instanceof _StructuresMessage2["default"]) {
if (resource.channel instanceof _StructuresTextChannel2["default"]) {
return resource.server;
return resource.channel.server;
}
}
return null;

View File

@@ -54,7 +54,7 @@ export default class Resolver {
}
if (resource instanceof Message) {
if (resource.channel instanceof TextChannel) {
return resource.server;
return resource.channel.server;
}
}
return null;