From 09d8f0535a30b01cec7f825372aa34316e28b0f7 Mon Sep 17 00:00:00 2001 From: phxntxm Date: Sat, 23 Jun 2018 12:12:31 -0500 Subject: [PATCH] Correct nsfw lookup --- cogs/links.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/links.py b/cogs/links.py index e82141a..ff03bdc 100644 --- a/cogs/links.py +++ b/cogs/links.py @@ -154,7 +154,7 @@ class Links: EXAMPLE: !urban a normal phrase RESULT: Probably something lewd; this is urban dictionary we're talking about""" - if utils.channel_is_nsfw(ctx.message.channel, self.bot.db): + if await utils.channel_is_nsfw(ctx.message.channel, self.bot.db): await ctx.message.channel.trigger_typing() url = "http://api.urbandictionary.com/v0/define"