fix(aurora): fixed some more errors
Some checks failed
Pylint / Pylint (3.11) (push) Failing after 44s
Some checks failed
Pylint / Pylint (3.11) (push) Failing after 44s
This commit is contained in:
parent
d2e7d755e8
commit
a9af61076e
2 changed files with 2 additions and 3 deletions
|
@ -968,7 +968,7 @@ class Aurora(commands.Cog):
|
||||||
try:
|
try:
|
||||||
await guild.unban(user, reason=f"Automatic unban from case #{moderation_id}")
|
await guild.unban(user, reason=f"Automatic unban from case #{moderation_id}")
|
||||||
|
|
||||||
embed = await embed_factory('message', self.bot.get_embed_color(None), guild, f'Automatic unban from case #{moderation_id}', 'unbanned')
|
embed = await embed_factory('message', self.bot.get_embed_color(None), guild=guild, reason=f'Automatic unban from case #{moderation_id}', moderation_type='unbanned')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
await user.send(embed=embed)
|
await user.send(embed=embed)
|
||||||
|
@ -997,7 +997,7 @@ class Aurora(commands.Cog):
|
||||||
role: discord.Role = guild.get_role(role_id)
|
role: discord.Role = guild.get_role(role_id)
|
||||||
if role is None:
|
if role is None:
|
||||||
raise discord.errors.NotFound
|
raise discord.errors.NotFound
|
||||||
except [discord.errors.NotFound, discord.errors.Forbidden, discord.errors.HTTPException]:
|
except (discord.errors.NotFound, discord.errors.Forbidden, discord.errors.HTTPException):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
per_guild_completion_time = (time.time() - time_per_guild) * 1000
|
per_guild_completion_time = (time.time() - time_per_guild) * 1000
|
||||||
|
|
|
@ -23,7 +23,6 @@ async def embed_factory(embed_type: str, color: Color, /, interaction: Interact
|
||||||
- guild
|
- guild
|
||||||
- reason
|
- reason
|
||||||
- moderation_type
|
- moderation_type
|
||||||
- response
|
|
||||||
- moderator (optional)
|
- moderator (optional)
|
||||||
- duration (optional)
|
- duration (optional)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue