Fixed resolveChannel when using a string (#857)

This commit is contained in:
Pascal Luttgens
2016-10-28 15:09:40 +02:00
committed by Amish Shah
parent c1926b6221
commit cdf66f8011

View File

@@ -117,7 +117,7 @@ class ClientDataResolver {
if (channel instanceof Channel) return channel;
if (channel instanceof Message) return channel.channel;
if (channel instanceof Guild) return channel.channels.get(channel.id) || null;
if (typeof channel === 'string') return this.client.channels.get(channel.id) || null;
if (typeof channel === 'string') return this.client.channels.get(channel) || null;
return null;
}