From a4cf15ce1d7a4911d68d3bbe261c7f91f812624a Mon Sep 17 00:00:00 2001 From: Lukas Nedbalek Date: Sat, 28 Sep 2024 00:32:55 +0200 Subject: [PATCH] rf: replies through common function --- main.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/main.py b/main.py index b367321..3180474 100644 --- a/main.py +++ b/main.py @@ -40,10 +40,7 @@ async def reply(ctx, message: str): :param ctx: The context of the command or the channel from the event handler. :param message: The message to reply with. """ - if isinstance(ctx, commands.Context): - await ctx.send(message) - elif isinstance(ctx, discord.abc.Messageable): - await ctx.send(message) + await ctx.send(message) else: logger.error(f'Failed to send the following message: "{message}"')