I try with this code to make a embed with a gif and this isn´t working:
@bot.tree.command(name="accept", description="Verifiziert einen Nutzer")
async def accept(interaction: discord.Interaction, nutzer: discord.Member):
await interaction.response.send_message(f"{nutzer.mention} wurde verifiziert!", ephemeral=False)
welcome_channel = interaction.guild.get_channel(1391023927781756954)
if welcome_channel:
file = discord.File("willkommen.gif", filename="willkommen.gif")
embed = discord.Embed(
title="Willkommen!",
description=f"Willkommen auf dem Server, {nutzer.mention}!",
color=discord.Color.green()
)
embed.set_image(url="attachment://willkommen.gif")
await welcome_channel.send(embed=embed)
rolle_entfernen = interaction.guild.get_role(1391023926414544946)
rolle_hinzufuegen = interaction.guild.get_role(1391437013282197655)
if rolle_entfernen and rolle_entfernen in nutzer.roles:
await nutzer.remove_roles(rolle_entfernen)
if rolle_hinzufuegen:
await nutzer.add_roles(rolle_hinzufuegen)```
and the gif is a .gif file