fix(aurora): fixed some expiry_handler() methods fetching the user object but not putting it into a variable
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 28s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 39s

This commit is contained in:
Seaswimmer 2024-08-13 14:18:25 -04:00
parent 009b406ff6
commit 448ac6792e
Signed by: cswimr
GPG key ID: 3813315477F26F82
2 changed files with 4 additions and 4 deletions

View file

@ -47,7 +47,7 @@ class Aurora(commands.Cog):
This cog stores all of its data in an SQLite database."""
__author__ = ["Seaswimmer"]
__version__ = "3.0.0-indev2"
__version__ = "3.0.0-indev3"
__documentation__ = "https://seacogs.coastalcommits.com/aurora/"
async def red_delete_data_for_user(self, *, requester, user_id: int):

View file

@ -244,7 +244,7 @@ class AddRole(Type):
target = moderation.bot.get_user(moderation.target_id)
if not target:
try:
await moderation.guild.fetch_member(moderation.target_id)
target = await moderation.guild.fetch_member(moderation.target_id)
except NotFound:
return 0
@ -417,7 +417,7 @@ class RemoveRole(Type):
target = moderation.bot.get_user(moderation.target_id)
if not target:
try:
await moderation.guild.fetch_member(moderation.target_id)
target = await moderation.guild.fetch_member(moderation.target_id)
except NotFound:
return 0
@ -894,7 +894,7 @@ class Tempban(Ban):
target = moderation.bot.get_user(moderation.target_id)
if not target:
try:
await moderation.bot.fetch_user(moderation.target_id)
target = await moderation.bot.fetch_user(moderation.target_id)
except NotFound:
return 0
await moderation.guild.unban(user=target, reason=reason)