From 95d18d603e123cfd1192bc69b2f470a15452c31e Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Fri, 12 Dec 2025 19:08:23 -0600 Subject: [PATCH] Fix /draft command to post player cards to result channel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The manual /draft command was only posting draft cards to the ping_channel, but not to the result_channel. The auto-draft task correctly posted to both channels. This fix ensures manual draft picks also post player cards to the configured result channel for consistent draft result tracking. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- VERSION | 2 +- commands/draft/picks.py | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index b71a29b..23a9383 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.24.4 +2.24.5 diff --git a/commands/draft/picks.py b/commands/draft/picks.py index 21a3e9c..1f433bb 100644 --- a/commands/draft/picks.py +++ b/commands/draft/picks.py @@ -358,6 +358,24 @@ class DraftPicksCog(commands.Cog): await ping_channel.send(embed=draft_card) + # Post draft card to result channel (separate from ping channel) + if draft_data.result_channel: + guild = interaction.guild + if guild: + result_channel = guild.get_channel(draft_data.result_channel) + if result_channel: + result_card = await create_player_draft_card(player_obj, pick_to_use) + + # Add skipped pick context to result card + if is_skipped_pick: + result_card.set_footer( + text=f"📝 Making up skipped pick (current pick is #{current_pick.overall})" + ) + + await result_channel.send(embed=result_card) + else: + self.logger.warning(f"Could not find result channel {draft_data.result_channel}") + # Only advance the draft if this was the current pick (not a skipped pick) if not is_skipped_pick: await draft_service.advance_pick(draft_data.id, draft_data.currentpick)