From c62d7326d86d0c0ee6f9970361c454d233f1de0b Mon Sep 17 00:00:00 2001 From: kingston Date: Sun, 18 Oct 2026 22:25:28 -0500 Subject: [PATCH] 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). --- ttstoy/ttstoy.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ttstoy/ttstoy.py b/ttstoy/ttstoy.py index 5e96e34..01d938b 100644 --- a/ttstoy/ttstoy.py +++ b/ttstoy/ttstoy.py @@ -2424,7 +2424,7 @@ class TtsToy(Cog): # --------------------------------------------------------------------- # SPEAK COMMAND (JUST [p]tts) # --------------------------------------------------------------------- - @commands.hybrid_command(name="tts") + @commands.command(name="tts") @commands.guild_only() async def tts(self, ctx: commands.Context, *, text: str): """ @@ -2583,10 +2583,7 @@ class TtsToy(Cog): await queue.put((ctx, audio_path)) - if ctx.interaction: - await ctx.reply("🗣") - else: - await ctx.react_quietly("🗣") + await ctx.react_quietly("🗣") # ========================================================================= # WEB UI - login, webui commands, and shared-state processor