diff --git a/redbot/cogs/permissions/permissions.py b/redbot/cogs/permissions/permissions.py index b93c3ff9e..a8a6360e5 100644 --- a/redbot/cogs/permissions/permissions.py +++ b/redbot/cogs/permissions/permissions.py @@ -282,7 +282,8 @@ class Permissions(commands.Cog): except discord.Forbidden: await ctx.send(_("I'm not allowed to DM you.")) else: - await ctx.send(_("I've just sent the file to you via DM.")) + if not isinstance(ctx.channel, discord.DMChannel): + await ctx.send(_("I've just sent the file to you via DM.")) finally: file.close()