From 19c69da79f16d16230216a48f99713ed249f8508 Mon Sep 17 00:00:00 2001 From: snipe <72265661+notsniped@users.noreply.github.com> Date: Tue, 2 May 2023 16:45:01 +0530 Subject: [PATCH] Fix help command list DM not sending to author --- main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.py b/main.py index fbc90bc4..c5a949e3 100644 --- a/main.py +++ b/main.py @@ -205,8 +205,7 @@ async def help(ctx: ApplicationContext, command: str = None): for x in commandsdb: if commandsdb[x]["type"] != "DevTools": r += f"`/{x}`\n" localembed = discord.Embed(title="Isobot Command Help", description=f"**Bot Commands:**\n{r}", color = color) - user = client.fetch_user(ctx.author.id) - await user.send(embed=localembed) + await ctx.author.send(embed=localembed) await ctx.respond("Check your direct messages.", ephemeral=True) # DevTools commands