WIP: Refactor Aurora (3.0.0) #29
1 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@ class Moderation(AuroraGuildModel):
|
||||||
member = await guild.fetch_member(self.target_id)
|
member = await guild.fetch_member(self.target_id)
|
||||||
|
|
||||||
await member.timeout(
|
await member.timeout(
|
||||||
None, reason=f"Case {self.moderation_id} resolved by {resolved_by}{" for" + reason if reason else ""}"
|
None, reason=f"Case {self.moderation_id} resolved by {resolved_by}{' for '+ reason if reason else ''}"
|
||||||
)
|
)
|
||||||
except NotFound:
|
except NotFound:
|
||||||
pass
|
pass
|
||||||
|
@ -104,7 +104,7 @@ class Moderation(AuroraGuildModel):
|
||||||
if self.type in ["BAN", "TEMPBAN"]:
|
if self.type in ["BAN", "TEMPBAN"]:
|
||||||
try:
|
try:
|
||||||
guild: discord.Guild = await self.bot.fetch_guild(self.guild_id)
|
guild: discord.Guild = await self.bot.fetch_guild(self.guild_id)
|
||||||
await guild.unban(await self.get_target(), reason=f"Case {self.moderation_id} resolved by {resolved_by}{" for" + reason if reason else ""}")
|
await guild.unban(await self.get_target(), reason=f"Case {self.moderation_id} resolved by {resolved_by}{' for '+ reason if reason else ''}")
|
||||||
except NotFound:
|
except NotFound:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue