From 024949390e7b44ba1df6446a44f6d706f523269a Mon Sep 17 00:00:00 2001 From: Dylan Dizon Date: Thu, 15 Nov 2018 15:41:23 -0500 Subject: [PATCH] Remove some of deprecated channel logic --- src/cogs/booru.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/cogs/booru.py b/src/cogs/booru.py index 33adb29..104fc98 100644 --- a/src/cogs/booru.py +++ b/src/cogs/booru.py @@ -655,9 +655,6 @@ class MsG: # Messy code that checks image limit and tags in blacklists async def _get_posts(self, ctx, *, booru='e621', tags=[], limit=1, previous={}): - guild = ctx.guild if isinstance( - ctx.guild, d.Guild) else ctx.channel - blacklist = set() # Creates temp blacklist based on context for bl in (self.blacklists['global_blacklist'], self.blacklists['guild_blacklist'].get(guild.id, {}).get(ctx.channel.id, set()), self.blacklists['user_blacklist'].get(ctx.author.id, set())):