async def ban(self, ctx, user: discord.Member, *, reason=None): if services.authority_check(user, ctx.author): logger.log(logger.VERBOSE, f"{ctx.author} banned {user}.", ctx.guild) await user.ban(reason=reason) else: await ctx.channel.send("Lacking authority to do this")
async def modify_karma(self, ctx, user: discord.Member, amount: int): if amount == 0: return if services.authority_check(user, ctx.author): dbfunctions.update_user_karma(ctx.guild, user, amount) logger.log(logger.VERBOSE, modification_text(ctx.author, user, amount, "karma."), source=ctx.guild) else: await ctx.channel.send("Lacking authority to do this")