Why event called twice when i send message?

I linked without send message, called once
No description
No description
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.
Jump to solution
6 Replies
nop
nopOP11mo ago
No description
No description
g
g11mo ago
Good question, honestly Did the bot create the thread?
nop
nopOP11mo ago
:peepodetective: No User create thread
Solution
g
g11mo ago
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.
nop
nopOP11mo ago
:hvh:
g
g11mo ago
So yeah if the bot creates the thread you'll get both events They do have different data, as explained on that page

Did you find this page helpful?