diff --git a/didier/didier.py b/didier/didier.py index dc08e53..0b5b457 100644 --- a/didier/didier.py +++ b/didier/didier.py @@ -1,7 +1,6 @@ import os import sys import traceback -from typing import Union, Optional import discord from discord.ext import commands @@ -15,7 +14,7 @@ from didier.utils.prefix import get_prefix class Didier(commands.Bot): """DIDIER <3""" - initial_extensions: tuple[str] = () + initial_extensions: tuple[str, ...] = () def __init__(self): activity = discord.Activity(type=discord.ActivityType.playing, name=settings.DISCORD_STATUS_MESSAGE) @@ -75,21 +74,6 @@ class Didier(commands.Bot): elif os.path.isdir(new_path := f"{path}/{file}"): await self._load_directory_extensions(new_path) - async def respond( - self, - context: Union[commands.Context, discord.Interaction], - message: str, - mention_author: bool = False, - ephemeral: bool = True, - embeds: Optional[list[discord.Embed]] = None, - ): - """Function to respond to both a normal message and an interaction""" - if isinstance(context, commands.Context): - return await context.reply(message, mention_author=mention_author, embeds=embeds) - - if isinstance(context, discord.Interaction): - return await context.response.send_message(message, ephemeral=ephemeral, embeds=embeds) - async def resolve_message(self, reference: discord.MessageReference) -> discord.Message: """Fetch a message from a reference""" # Message is in the cache, return it diff --git a/pyproject.toml b/pyproject.toml index 5ca139e..a5ef1e7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,8 @@ plugins = [ [tool.pylint.master] disable = [ "missing-module-docstring", - "too-few-public-methods" + "too-few-public-methods", + "too-many-arguments" ] [tool.pylint.format]