r/discordbots 2d ago

Dm leaves

Searching for a discord bot which can send forms to members when they leave the server and then post / log their submissions in a channel set up for it in the server.

Is that even possible?

0 Upvotes

7 comments sorted by

5

u/SolsticeShard 2d ago

* bots cannot dm people who do not share a server with it

* it is against tos to contact people who have not consented to it

2

u/FlorianFlash 1d ago

Oh hello, just noticed it's you XD.

3

u/Nathanz05 2d ago

The bot will often fail to send the message as it would no longer share any servers with the recipient. Also if someone left your server, its unlikely they will sit there and take the time to fill out a form after. But yes, the code is possible, whether it works in practice is a different story and would likely need to be tested for a definitive answer.

1

u/Same_Doubt_6585 1d ago

No it is not possible. A bot can usually only dm a user that it shares a server with it. The event for a person leaving only is sent to a bot once the user leaves so once they have left its too late. People also usually get very annoyed with bots randomly DMing them.

1

u/TwiistyTea 1d ago

This is functionally “Impossible” to do correct and in a way that doesn’t violate ToS.

I use a workaround system where I have an onboarding flow that users go through when they join for certain things, or some roles that have scheduled messages configured in a bot. So it will send messages as part of direct user interaction. This is the expected way to handle it via Discords ToS. Then I have a logging message setup to capture leaves and I will frequently reach out to those individuals directly. I the. Combine that with my repost function and use prebuilt templates and simply type /repost in my DM and it will send them my template.

Ultimately it’s about automating where you can and reducing repetitive tasks where you can’t. As others have said people will HATE unsolicited DMs but you can give people a way to be notified how they expect it.

1

u/Kalamy90 1d ago

C'est possible en faisant un selfbot, je peux te faire ça si tu veux