mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-05 17:02:32 -05:00
Reformat with Black 22.1.0
This commit is contained in:
@@ -178,7 +178,6 @@ class IgnoreManager:
|
||||
async def set_ignored_channel(
|
||||
self, channel: Union[discord.TextChannel, discord.CategoryChannel], set_to: bool
|
||||
):
|
||||
|
||||
cid: int = channel.id
|
||||
self._cached_channels[cid] = set_to
|
||||
if set_to:
|
||||
@@ -200,7 +199,6 @@ class IgnoreManager:
|
||||
return ret
|
||||
|
||||
async def set_ignored_guild(self, guild: discord.Guild, set_to: bool):
|
||||
|
||||
gid: int = guild.id
|
||||
self._cached_guilds[gid] = set_to
|
||||
if set_to:
|
||||
@@ -221,9 +219,7 @@ class WhitelistBlacklistManager:
|
||||
self._access_lock = asyncio.Lock()
|
||||
|
||||
async def discord_deleted_user(self, user_id: int):
|
||||
|
||||
async with self._access_lock:
|
||||
|
||||
async for guild_id_or_none, ids in AsyncIter(
|
||||
self._cached_whitelist.items(), steps=100
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user