pythondiscord.py

How to put custom emoji in embed footer | Discord.py


I have tried putting my custom emoji as a footer like this:

embed.set_footer(text=f"<:Bloxxer:793683622238224384> Bloxxer")

It does not work and comes out exactly as in the string in the footer. Is it possible to set a custom emoji in a footer in discord.py?


Solution

  • I don't think discord.py allows for putting emojis in the footer of an embed but if you would like to put one in a field see the below code.

    @client.command()
    async def embed(ctx):
        emoji = client.get_emoji(id=EMOJI ID)
        embed = discord.Embed()
        channel = ctx.message.channel.id
        embed.add_field(name='emoji', value=f"{emoji} Bloxxer")
        await ctx.send(embed = embed)