試圖發送圖像從帖子中復制了這段代碼,我添加了一些。ch = get(member.guild.channels, name="general")# where i want to send an image #this is my animated gif from this line I copied but no idea where Image function come from image = Image.open("./images/welcome.gif")with BytesIO() as image_binary: image.save(image_binary, "gif") image_binary.seek(0) await ch.send(file=discord.File(fp=image_binary))我通過 pip 安裝了 Image 并添加了 import Image 然后出現錯誤所以我認為這不是來自 pip 的模塊有任何想法嗎?
discord py,嘗試發送圖像
慕桂英3389331
2022-07-26 10:57:37
