Hi, I'm trying to get the URL of an image im uploading to Discord into an embed.
This is my code:
res = await ctx.respond(embed = embed, file = file)
print(type(res))
print(res.message.attachments[0].url)
print(res.message.embeds[0].image.url)
print(res.attachments[0])```
The output is
<class 'discord.interactions.Interaction'>
AttributeError: 'NoneType' object has no attribute 'attachments'```