fix: Update ephemeral response deferral in setup_commands to improve visibility

This commit is contained in:
Slipstream 2025-05-30 13:23:05 -06:00
parent 8a67e3b48b
commit c8870c6b7f
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD

View File

@ -805,7 +805,7 @@ def setup_commands(cog: 'GurtCog'):
await interaction.response.send_message("⛔ Only the bot owner can change Gurt's AI model.", ephemeral=True) await interaction.response.send_message("⛔ Only the bot owner can change Gurt's AI model.", ephemeral=True)
return return
# await interaction.response.defer(ephemeral=True) await interaction.response.defer(ephemeral=False)
try: try:
new_model_id = model.value new_model_id = model.value
new_model_friendly_name = model.name new_model_friendly_name = model.name
@ -832,6 +832,7 @@ def setup_commands(cog: 'GurtCog'):
@cog.bot.tree.command(name="gurtgetmodel", description="Display Gurt's currently active AI model.") @cog.bot.tree.command(name="gurtgetmodel", description="Display Gurt's currently active AI model.")
async def gurtgetmodel(interaction: discord.Interaction): async def gurtgetmodel(interaction: discord.Interaction):
"""Handles the /gurtgetmodel command.""" """Handles the /gurtgetmodel command."""
await interaction.response.defer(ephemeral=False)
try: try:
current_model_id = cog.default_model current_model_id = cog.default_model
# Try to get the friendly name from AVAILABLE_AI_MODELS # Try to get the friendly name from AVAILABLE_AI_MODELS