Skip to content

[Question] Get new events after bot reconnect? #2393

Answered by csmir
kevinvenclovas asked this question in Q&A
Discussion options

You must be logged in to vote

As mentioned above, Discord does not send any messages to offline bots, no socket connection is established. An alternative has also been mentioned. You can store the users last inside the server with json or an alternative, fetch the list when the bot starts back up, and compare it to the new list. You can extract the new entries that don't exist in the prior, and send a message to those users.

Please be careful though; If you do this for a large amount of users, it is considered mass DM, which is against the Discord TOS.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by csmir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants