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-class-docstring,
line-too-long,
too-many-arguments,
duplicate-code
too-many-arguments

View file

@ -36,17 +36,6 @@ class Moderation(commands.Cog):
database.close()
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"])
async def timeout(self, ctx: commands.Context, target: commands.MemberConverter, duration: str, *, reason: str):
try: