WIP: Refactor Aurora (3.0.0) #29

Draft
cswimr wants to merge 347 commits from aurora-pydantic into main
Showing only changes of commit d4fe97f247 - Show all commits

View file

@ -243,7 +243,7 @@ class AddRole(Type):
@classmethod
async def expiry_handler(cls, moderation: Moderation) -> int:
try:
target = moderation.bot.get_user(moderation.target_id)
target = moderation.guild.get_member(moderation.target_id)
if not target:
try:
target = await moderation.guild.fetch_member(moderation.target_id)
@ -418,7 +418,7 @@ class RemoveRole(Type):
@classmethod
async def expiry_handler(cls, moderation: Moderation) -> int:
try:
target = moderation.bot.get_user(moderation.target_id)
target = moderation.guild.get_member(moderation.target_id)
if not target:
try:
target = await moderation.guild.fetch_member(moderation.target_id)