ttstoy: remove slash commands, make tts prefix-only

Change tts from commands.hybrid_command to commands.command so it no
longer registers an app (slash) command, and drop the ctx.interaction
reply branch (always react_quietly now).
This commit is contained in:
2026-10-18 22:25:28 -05:00
parent 30c22d9a31
commit c62d7326d8
+2 -5
View File
@@ -2424,7 +2424,7 @@ class TtsToy(Cog):
# --------------------------------------------------------------------- # ---------------------------------------------------------------------
# SPEAK COMMAND (JUST [p]tts) # SPEAK COMMAND (JUST [p]tts)
# --------------------------------------------------------------------- # ---------------------------------------------------------------------
@commands.hybrid_command(name="tts") @commands.command(name="tts")
@commands.guild_only() @commands.guild_only()
async def tts(self, ctx: commands.Context, *, text: str): async def tts(self, ctx: commands.Context, *, text: str):
""" """
@@ -2583,10 +2583,7 @@ class TtsToy(Cog):
await queue.put((ctx, audio_path)) await queue.put((ctx, audio_path))
if ctx.interaction: await ctx.react_quietly("🗣")
await ctx.reply("🗣")
else:
await ctx.react_quietly("🗣")
# ========================================================================= # =========================================================================
# WEB UI - login, webui commands, and shared-state processor # WEB UI - login, webui commands, and shared-state processor