#webhook message doesnt trigger publish

1 messages · Page 1 of 1 (latest)

solar olive
#

Hi, i have the following code to trigger a publish in a new channel:

        channel = bot.get_channel(env_variable.TECH_NEWS_ID)
        message = await channel.fetch_message(channel.last_message_id)
        await message.publish()
        return

Now it works when i manually enter a message in that channel, but it doesn't work when that message is a webhook. Is this possible?

solar olive
#

I have it under:

@bot.event
async def on_message(m):