我正在尝试使用 discord.py 构建一个歌词命令,我得到了这个 error.Any 关于我做错了什么的想法,我该如何解决?

im trying to build a lyrics command with discord.py and i get this error.Any ideas on what i did wrong an how can i fix it?

@commands.command()
async def lyrics(self,ctx,artist, title):
        cs = aiohttp.ClientSession()
        res = await cs.get('https://api.lyrics.ovh/v1/{}/{}'.format(artist,title))
        data = await res.json()
        data = ['lyrics']
        await ctx.send(data)

我明白了 error.idk 我做了什么 wrong.its 我第一次使用 aiohttp 所以我有点困惑。

client_session: <aiohttp.client.ClientSession object at 0x00000218657B6160>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x0000021865678A70>, 379071.609)]']
connector: <aiohttp.connector.TCPConnector object at 0x00000218657B6E10>

正如您的回溯所说,并且如 this other Whosebug question 中所写,连接器应该在程序停止之前关闭。我假设您在程序生命周期结束时收到此错误。尝试在程序结束前使用 cs.close() 看看它是否消失