actually fixing pylint

This commit is contained in:
SeaswimmerTheFsh 2023-06-21 17:19:47 -04:00
parent 58f7aa6ebf
commit c5b2dfb2a8
2 changed files with 1 additions and 13 deletions

View file

@ -4,5 +4,4 @@
missing-function-docstring, missing-function-docstring,
missing-class-docstring, missing-class-docstring,
line-too-long, line-too-long,
too-many-arguments, too-many-arguments
duplicate-code

View file

@ -36,17 +36,6 @@ class Moderation(commands.Cog):
database.close() database.close()
print(f"MySQL Row Inserted!\n{moderation_id}, {moderation_type}, {target_id}, {duration}, {reason}, 0") print(f"MySQL Row Inserted!\n{moderation_id}, {moderation_type}, {target_id}, {duration}, {reason}, 0")
def add_field(self, name = None, value = None):
if name is None and value is None:
raise ValueError("A 'name' or 'value' must be given")
self.description = "\n" if self.description else ""
if value is None:
self.description += f"### {name}"
elif name is None:
self.description += f"{value}"
else:
self.description += f"### {name}\n{value}"
@commands.command(name="timeout", aliases=["mute"]) @commands.command(name="timeout", aliases=["mute"])
async def timeout(self, ctx: commands.Context, target: commands.MemberConverter, duration: str, *, reason: str): async def timeout(self, ctx: commands.Context, target: commands.MemberConverter, duration: str, *, reason: str):
try: try: