Why event called twice when i send message?
I linked without send message, called once
Solution:Jump to solution
You get that event both when the thread is created and when the bot is added to the thread https://discord.com/developers/docs/events/gateway-events#thread-create
Discord Developer Portal
Discord Developer Portal — API Docs for Bots and Developers
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
6 Replies
Good question, honestly
Did the bot create the thread?
:peepodetective: No
User create thread
Solution
You get that event both when the thread is created and when the bot is added to the thread https://discord.com/developers/docs/events/gateway-events#thread-create
Discord Developer Portal
Discord Developer Portal — API Docs for Bots and Developers
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
:hvh:
So yeah if the bot creates the thread you'll get both events
They do have different data, as explained on that page