Compare commits

...

2 commits

Author SHA1 Message Date
dd89bfaf34
fix(aurora): checking against the wrong bool value for silent
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Failing after 27s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 39s
2024-07-06 11:52:19 -04:00
ee49d5b10c
misc(aurora): make target_type lowercase 2024-07-06 11:50:59 -04:00

View file

@ -41,7 +41,7 @@ class Ban(Type):
response_message = await ctx.send(f"{target.mention} has been {cls.verb}!\n{bold('Reason:')} {inline(reason)}")
if silent is True:
if silent is False:
try:
embed = await message_factory(
bot,
@ -63,7 +63,7 @@ class Ban(Type):
ctx.guild.id,
ctx.author.id,
cls.moderation_type,
'USER',
'user',
target.id,
None,
None,
@ -127,7 +127,7 @@ class Tempban(Ban):
response_message = await ctx.send(f"{target.mention} has been {cls.verb} for {humanize_timedelta(parsed_time)}!\n{bold('Reason:')} {inline(reason)}")
if silent is True:
if silent is False:
try:
embed = await message_factory(
bot,
@ -149,7 +149,7 @@ class Tempban(Ban):
ctx.guild.id,
ctx.author.id,
cls.moderation_type,
'USER',
'user',
target.id,
None,
parsed_time,