diff --git a/modules/utility.py b/modules/utility.py index 02d1e31..28d99e5 100644 --- a/modules/utility.py +++ b/modules/utility.py @@ -213,7 +213,9 @@ async def on_raw_reaction_add(self, payload): async def _clean(self, ctx, messages: int, users: commands.Greedy[discord.User], extra: typing.Optional[str]): if extra: # This var will contain data if the greedy fails, such as if a non-ID or message ID are provided instead of a user - return await ctx.send(f'{config.redTick} Some user(s) passed are invalid. Please check the ID(s) and ensure they are correct') + return await ctx.send( + f'{config.redTick} Some user(s) passed are invalid. Please check the ID(s) and ensure they are correct' + ) if messages > 2000 or messages <= 0: return await ctx.send( @@ -225,7 +227,9 @@ async def _clean(self, ctx, messages: int, users: commands.Greedy[discord.User], def confirm_check(reaction, member): return member == ctx.author and str(reaction.emoji) in [config.redTick, config.greenTick] - confirmMsg = await ctx.send(f'This action will scan and delete up to {messages}, are you sure you want to proceed?') + confirmMsg = await ctx.send( + f'This action will scan and delete up to {messages}, are you sure you want to proceed?' + ) await confirmMsg.add_reaction(config.greenTick) await confirmMsg.add_reaction(config.redTick) try: