From aaf3c9cfe9921c2e025481b09d6c17db9471274b Mon Sep 17 00:00:00 2001 From: Alan Beatty Date: Mon, 14 Mar 2022 11:44:15 -0500 Subject: [PATCH] Fix ban dms sending to mod. Closes #340 --- .../Modules/Administration/UserPunish/UserPunishCommands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NadekoBot/Modules/Administration/UserPunish/UserPunishCommands.cs b/src/NadekoBot/Modules/Administration/UserPunish/UserPunishCommands.cs index 1787f2021..a6f174ec9 100644 --- a/src/NadekoBot/Modules/Administration/UserPunish/UserPunishCommands.cs +++ b/src/NadekoBot/Modules/Administration/UserPunish/UserPunishCommands.cs @@ -478,7 +478,7 @@ public partial class Administration var defaultMessage = GetText(strs.bandm(Format.Bold(ctx.Guild.Name), msg)); var embed = _service.GetBanUserDmEmbed(Context, user, defaultMessage, msg, null); if (embed is not null) - await ctx.User.SendAsync(embed); + await user.SendAsync(embed); } catch {