fix: Update command logic to remove unnecessary deferral handling in Rule34Cog

This commit is contained in:
Slipstream 2025-05-29 22:44:54 -06:00
parent ed3e564739
commit c8b4277767
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD

View File

@ -208,8 +208,8 @@ class Rule34Cog(GelbooruWatcherBaseCog): # Removed name="Rule34"
final_tags = f"{transformed_tags} -ai_generated"
log.info(f"Rule34Cog (Slash): Using final tags: '{final_tags}' from original: '{tags}'")
# _slash_command_logic handles its own deferral/response
await self._slash_command_logic(interaction, final_tags, hidden, already_deferred=True)
# _slash_command_logic calls _fetch_posts_logic, which checks if already deferred
await self._slash_command_logic(interaction, final_tags, hidden)
# --- New Browse Command ---
@ -233,8 +233,8 @@ class Rule34Cog(GelbooruWatcherBaseCog): # Removed name="Rule34"
final_tags = f"{transformed_tags} -ai_generated"
log.info(f"Rule34Cog (Browse): Using final tags: '{final_tags}' from original: '{tags}'")
# _browse_slash_command_logic handles its own deferral/response
await self._browse_slash_command_logic(interaction, final_tags, hidden, already_deferred=True)
# _browse_slash_command_logic calls _fetch_posts_logic, which checks if already deferred
await self._browse_slash_command_logic(interaction, final_tags, hidden)
# --- r34watch slash command group ---
# All subcommands will call the corresponding _watch_..._logic methods from the base class.