@music.command(description='Plays the Music')
@commands.has_guild_permissions(connect=True)
async def play(self, ctx: commands.Context, *, music_name: str):
    vc = ctx.voice_client
    if vc:
        FFMPEG_OPTIONS = {'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5', 'options': '-vn'}
        YDL_OPTIONS = {'formats': 'bestaudio'}
        with youtube_dl.YoutubeDL(YDL_OPTIONS) as ydl:
            info = {}
            url = ''
            if music_name.startswith('https://'):
                info = ydl.extract_info(music_name, download=False)
                url = info['formats'][0]['url']
            else:
                info_ = ydl.extract_info(f'ytsearch:{music_name}', download=False)
                url_ = info_['entries'][0]['webpage_url']
                info = ydl.extract_info(url_, download=False)
                url = info['formats'][0]['url']
            if info:
                (await ctx.reply(embed=embeds.music_playing_embed(info)))
            source = disnake.FFmpegPCMAudio(url, **FFMPEG_OPTIONS)
            vc.play(source)
    else:
        (await ctx.reply('I am not Connected to any Voice Channel!!'))
@music.command(description='Plays the Music')
@commands.has_guild_permissions(connect=True)
async def play(self, ctx: commands.Context, *, music_name: str):
    vc = ctx.voice_client
    if vc:
        FFMPEG_OPTIONS = {'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5', 'options': '-vn'}
        YDL_OPTIONS = {'formats': 'bestaudio'}
        with youtube_dl.YoutubeDL(YDL_OPTIONS) as ydl:
            info = {}
            url = 
            if music_name.startswith('https://'):
                info = ydl.extract_info(music_name, download=False)
                url = info['formats'][0]['url']
            else:
                info_ = ydl.extract_info(f'ytsearch:{music_name}', download=False)
                url_ = info_['entries'][0]['webpage_url']
                info = ydl.extract_info(url_, download=False)
                url = info['formats'][0]['url']
            if info:
                (await ctx.reply(embed=embeds.music_playing_embed(info)))
            source = disnake.FFmpegPCMAudio(url, **FFMPEG_OPTIONS)
            vc.play(source)
    else:
        (await ctx.reply('I am not Connected to any Voice Channel!!'))