#@tasks.loop | Edit Embed

1 messages · Page 1 of 1 (latest)

copper imp
#

Hi, can someone help me with this?
I want the bot to edit every 300 seconds his own embed. But Nothing happens.

Code:

    async def gmod_status(self):
        embed = discord.Embed(
            title=f"Embed Title",
            description="Edit Embed",
            color=discord.Color.red(),
        )

        channel = await self.bot.fetch_channel(1191073160871825508)
        message = await channel.fetch_message(1191075283130925056)

        if message:
            await message.edit(embed=embed)
        else:
            await channel.send(embed=embed)```
buoyant zinc
#

What are your bot intents?

copper imp
buoyant zinc
#

I dont see message intents

#

and channel intents

sonic wind
#

u have to also start the task somewhere

#

like gmod_status.start()

copper imp
copper imp
sonic wind