async def player(self, ctx: SlashContext): await ctx.defer(hidden=True) # prevent `failed` ctx.voice_client = ctx.guild.voice_client if await self.voicecog.join_voice(ctx): await cmd.play_with(ctx.guild.voice_client) await ctx.send(name, hidden=True)
async def leave(self, ctx: SlashContext): await ctx.defer(hidden=True) ctx.voice_client = ctx.guild.voice_client await self.voicecog.leave_voice(ctx) await ctx.send("Goodbye!", hidden=True)
async def join(self, ctx: SlashContext): await ctx.defer(hidden=True) ctx.voice_client = ctx.guild.voice_client await self.voicecog.join_voice(ctx) await ctx.send("Hello!", hidden=True)