當我運行 .py 文件時,窗口立即關閉。此時并沒有出現錯誤代碼。如果我把Embed相關的代碼刪除,就可以正常運行了。我不確定問題是什么......import discord, asyncio, osfrom discord.ext import commandstoken = "########"game = discord.Game("??&help??")bot = commands.Bot(command_prefix = '&', status = discord.Status.online, activity = game)@bot.eventasync def on_ready(): print("hi")@bot.command()async def help(ctx): embed=discord.Embed(title = "???? ?? ????,,," , description=f"?? ??? ??????.", color = 0x00ff56) embed.add_field(name="??", value="&??", inline=True) embed.add_field(name="?? ??", value="&??", inline=True) embed.add_field(name="?? ??", value="&??", inline=True) embed.add_field(name="??? ??", value="&??", inline=True) embed.add_field(name="?? ???", value="&???", inline=True) embed.add_field(name="??? ??", value="&??.", inline=True) embed.add_field(name="? ??", value="&??", inline=True) embed.add_field(name="??? ?? ??", value="&???", inline=True) await ctx.send(embed=embed)bot.run(token)
與discord.embed相關的錯誤
慕桂英3389331
2023-07-18 13:47:39