From 3db30842dc5b0abeb95d42e0db93bce6c075d479 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 16 Mar 2023 20:36:07 +0100 Subject: [PATCH] Sending messages in DM --- reginaldCog/reginald.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/reginaldCog/reginald.py b/reginaldCog/reginald.py index 66f6b50..54b4524 100644 --- a/reginaldCog/reginald.py +++ b/reginaldCog/reginald.py @@ -174,20 +174,20 @@ class ReginaldCog(commands.Cog): @reginald.error async def reginald_error(self, ctx, error): if isinstance(error, commands.BadArgument): - await ctx.send("I'm sorry, but I couldn't understand your input. Please check your message and try again.") + await ctx.author.send("I'm sorry, but I couldn't understand your input. Please check your message and try again.") elif isinstance(error, commands.CheckFailure): - await ctx.send("You do not have the required role to use this command.") + await ctx.author.send("You do not have the required role to use this command.") else: - await ctx.send(f"An unexpected error occurred: {error}") + await ctx.author.send(f"An unexpected error occurred: {error}") @reginaldimagine.error async def reginaldimagine_error(self, ctx, error): if isinstance(error, commands.BadArgument): - await ctx.send("I'm sorry, but I couldn't understand your input. Please check your message and try again.") + await ctx.author.send("I'm sorry, but I couldn't understand your input. Please check your message and try again.") elif isinstance(error, commands.CheckFailure): - await ctx.send("You do not have the required role to use this command.") + await ctx.author.send("You do not have the required role to use this command.") else: - await ctx.send(f"An unexpected error occurred: {error}") + await ctx.author.send(f"An unexpected error occurred: {error}") def setup(bot): cog = ReginaldCog(bot)