From b59de5c066d79b7305d52135fa461d5d79dd247c Mon Sep 17 00:00:00 2001 From: "Mathias V. Nielsen" <1547127+math280h@users.noreply.github.com> Date: Sat, 11 Jan 2025 09:16:30 -0500 Subject: [PATCH] fix: Warn Embed sent to Mod --- internal/moderation/warn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/moderation/warn.go b/internal/moderation/warn.go index 2a0fc9b..6895340 100644 --- a/internal/moderation/warn.go +++ b/internal/moderation/warn.go @@ -44,7 +44,7 @@ func WarnCommand(s *discordgo.Session, i *discordgo.InteractionCreate) { // Inform the user that they have been warned embed := GenerateInfractionEmbed(reason, points) - userChannel, err := s.UserChannelCreate(i.Member.User.ID) + userChannel, err := s.UserChannelCreate(userID) if err != nil { log.Error().Err(err).Msg("Failed to create user channel") }