您好,我需要一个代码,其中包含 Json 文件上的 IMG 列表
那是我的原始代码 ` @client.command() @commands.has_role('test') 异步定义动漫(ctx):
#test = discord.Embed
#test.set.title = ("hi"),
#test.set.image = ('.png'),
#test.set_footer(
# text=f"Powered by xxx")
files = []
for file in os.listdir():
if file.endswith('.jpg'):
files.append(file)
await ctx.channel.send(file=discord.File(file))
`