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
noBrain
noBrainOP3mo ago
No description
No description
gdude
gdude3mo ago
Good question, honestly Did the bot create the thread?
noBrain
noBrainOP3mo ago
:peepodetective: No User create thread
Solution
gdude
gdude3mo 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.
noBrain
noBrainOP3mo ago
:hvh:
gdude
gdude3mo 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?