Skip to content

Commit 00eb779

Browse files
committed
Formatting
1 parent dcfdfea commit 00eb779

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

cogs/modmail.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ async def adduser(self, ctx, user: discord.Member, *, options: str.lower = ""):
691691
await ctx.send(embed=em)
692692
ctx.command.reset_cooldown(ctx)
693693
else:
694-
if 'silent' not in options and 'silently' not in options:
694+
if "silent" not in options and "silently" not in options:
695695
em = discord.Embed(
696696
title="New Thread (Group)",
697697
description=f"{ctx.author.name} has added you to a Modmail thread.",
@@ -747,7 +747,7 @@ async def removeuser(self, ctx, user: discord.Member, *, options: str.lower = ""
747747
await ctx.send(embed=em)
748748
ctx.command.reset_cooldown(ctx)
749749
else:
750-
if 'silent' not in options and 'silently' not in options:
750+
if "silent" not in options and "silently" not in options:
751751
em = discord.Embed(
752752
title="Removed From Thread (Group)",
753753
description=f"{ctx.author.name} has been removed from the Modmail thread.",
@@ -1101,7 +1101,9 @@ async def contact(
11011101
silent = True
11021102
category = category.strip("silently").strip("silent").strip()
11031103
try:
1104-
category = await SimilarCategoryConverter().convert(ctx, category) # attempt to find a category again
1104+
category = await SimilarCategoryConverter().convert(
1105+
ctx, category
1106+
) # attempt to find a category again
11051107
except commands.BadArgument:
11061108
category = None
11071109

core/checks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def has_permissions(permission_level: PermissionLevel = PermissionLevel.REGULAR)
3131
::
3232
@has_permissions(PermissionLevel.OWNER)
3333
async def setup(ctx):
34-
print("Success")
34+
await ctx.send('Success')
3535
"""
3636

3737
return commands.check(has_permissions_predicate(permission_level))

core/thread.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,6 @@ async def find(
11651165
await thread.close(closer=self.bot.user, silent=True, delete_channel=False)
11661166
thread = None
11671167
else:
1168-
print('in here')
11691168
channel = discord.utils.find(
11701169
lambda x: str(recipient_id) in x.topic if x.topic else False,
11711170
self.bot.modmail_guild.text_channels,

0 commit comments

Comments
 (0)