From 04558151e802597de2f003907009309bc770e2f6 Mon Sep 17 00:00:00 2001 From: owen Date: Thu, 17 Sep 2026 17:04:23 -0500 Subject: [PATCH] ytaudio: rename join/leave -> ytjoin/ytleave to avoid command collisions The Minecraft cog already registers top-level 'join' and 'leave', which caused a CommandRegistrationError. Namespace these two commands under a yt-prefix (ytjoin, ytleave, alias ytdc). --- ytaudio/ytaudio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ytaudio/ytaudio.py b/ytaudio/ytaudio.py index 2793141..8b82293 100644 --- a/ytaudio/ytaudio.py +++ b/ytaudio/ytaudio.py @@ -371,14 +371,14 @@ class YTAudio(commands.Cog): pass await ctx.send(f"🔊 Volume set to {level}.") - @commands.command() + @commands.command(name="ytjoin") @commands.guild_only() async def join(self, ctx: commands.Context): """Join your voice channel.""" if await self._ensure_connected(ctx): await ctx.send("✅ Joined.") - @commands.command(aliases=["disconnect", "dc"]) + @commands.command(name="ytleave", aliases=["ytdc"]) @commands.guild_only() async def leave(self, ctx: commands.Context): """Leave the voice channel and clear state."""