async def nyan_cat(self, ctx: commands.Context, channel: discord.VoiceChannel, *members: discord.Member): """Mets du nyan cat.""" await ctx.message.delete() music = self.bot.get_cog("Music") ctx.voice_state = music.get_voice_state(ctx) await music._summon(ctx, channel=channel) await music._play(ctx, search="nyan cat 10 hours") for member in members: member.move_to(channel)
async def cog_before_invoke(self, ctx: commands.Context): ctx.voice_state = self.get_voice_state(ctx)
async def cog_before_invoke( self, ctx: commands.Context ): #Get ourselves a music context! (Only accessable throughout this cog) ctx.voice_state = self.get_voice_state(ctx)