Skip to content

Commit

Permalink
Fix truthy promise condition
Browse files Browse the repository at this point in the history
  • Loading branch information
zajrik committed Jul 11, 2017
1 parent b80fe11 commit 8afb74d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DMManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export class DMManager
*/
private async handleMessage(message: Message): Promise<void>
{
if (this.isBlacklisted(message.author)) return;
if (await this.isBlacklisted(message.author)) return;
if (message.embeds[0] && message.channel.type !== 'dm') return;
if (message.channel.type !== 'dm' && message.guild.id !== this._guild) return;
if (message.guild && message.channel.id === message.guild.id) return;
Expand Down

0 comments on commit 8afb74d

Please sign in to comment.