fix: prevent scout view timeout reset when embed updates

message.edit(view=self) re-registers the view in discord.py's ViewStore,
resetting the 30-minute timeout timer. Scouted packs never showed
"Scout Window Closed" because each scout pushed the timeout further out.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Cal Corum 2026-03-09 13:16:48 -05:00
parent 33260fd5fa
commit a509a4ebf5

View File

@ -88,7 +88,7 @@ class ScoutView(discord.ui.View):
)
try:
await self.message.edit(embed=embed, view=self)
await self.message.edit(embed=embed)
except Exception as e:
logger.error(f"Failed to update scout message: {e}")