mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 18:27:59 -05:00
Bump black to 20.8b1 (and reformat) (#4371)
* Bump black version * Reformat with black
This commit is contained in:
@@ -416,10 +416,9 @@ class Cleanup(commands.Cog):
|
||||
is_cc = lambda name: False
|
||||
alias_cog = self.bot.get_cog("Alias")
|
||||
if alias_cog is not None:
|
||||
alias_names: Set[str] = (
|
||||
set((a.name for a in await alias_cog._aliases.get_global_aliases()))
|
||||
| set(a.name for a in await alias_cog._aliases.get_guild_aliases(ctx.guild))
|
||||
)
|
||||
alias_names: Set[str] = set(
|
||||
a.name for a in await alias_cog._aliases.get_global_aliases()
|
||||
) | set(a.name for a in await alias_cog._aliases.get_guild_aliases(ctx.guild))
|
||||
is_alias = lambda name: name in alias_names
|
||||
else:
|
||||
is_alias = lambda name: False
|
||||
@@ -559,7 +558,7 @@ class Cleanup(commands.Cog):
|
||||
return False
|
||||
|
||||
to_delete = await self.get_messages_for_deletion(
|
||||
channel=ctx.channel, limit=number, check=check, before=ctx.message,
|
||||
channel=ctx.channel, limit=number, check=check, before=ctx.message
|
||||
)
|
||||
|
||||
if len(to_delete) > 100:
|
||||
|
||||
Reference in New Issue
Block a user