fix: Remove unnecessary ephemeral response deferral in model change commands

This commit is contained in:
Slipstream 2025-05-30 13:21:26 -06:00
parent 19f7d658fc
commit 8a67e3b48b
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)
return
await interaction.response.defer(ephemeral=True)
# await interaction.response.defer(ephemeral=True)
try:
new_model_id = model.value
new_model_friendly_name = model.name
@ -832,7 +832,6 @@ def setup_commands(cog: 'GurtCog'):
@cog.bot.tree.command(name="gurtgetmodel", description="Display Gurt's currently active AI model.")
async def gurtgetmodel(interaction: discord.Interaction):
"""Handles the /gurtgetmodel command."""
await interaction.response.defer(ephemeral=True)
try:
current_model_id = cog.default_model
# Try to get the friendly name from AVAILABLE_AI_MODELS