Merge branch 'ban=patch' into 'v4'

Fix ban dms sending to mod. Closes #340

Closes #340

See merge request Kwoth/nadekobot!237
This commit is contained in:
Kwoth
2022-03-14 23:59:55 +00:00

View File

@@ -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
{