rf: replies through common function

This commit is contained in:
Lukáš Nedbálek 2024-09-28 00:32:55 +02:00
parent b1e353a890
commit a4cf15ce1d

View file

@ -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}"')