fix: Update ephemeral response deferral in setup_commands to improve visibility
This commit is contained in:
parent
8a67e3b48b
commit
c8870c6b7f
@ -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=False)
|
||||
try:
|
||||
new_model_id = model.value
|
||||
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.")
|
||||
async def gurtgetmodel(interaction: discord.Interaction):
|
||||
"""Handles the /gurtgetmodel command."""
|
||||
await interaction.response.defer(ephemeral=False)
|
||||
try:
|
||||
current_model_id = cog.default_model
|
||||
# Try to get the friendly name from AVAILABLE_AI_MODELS
|
||||
|
Loading…
x
Reference in New Issue
Block a user