Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle direct message failures if user has blocked bot or enabled privacy settings for the server #59

Open
rohitp30 opened this issue Nov 23, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@rohitp30
Copy link

The bot uses DM's to convey information and sometimes I've noticed that users in my server have elevated privacy settings. With this, the bot can't DM them regarding the time in their timezone. It was really hard to figure out what happened and I thought it would be better to add an error handler if the bot can't open a DM with the target user. I wish I could have contributed more in this issue but since I am not that experienced in discord.js, I wouldn't know how to patch the situation.

@KevinNovak
Copy link
Owner

Previously when users had disabled DMs, Friend Time would notify them in the server they are in. I ended up removing this notification since it was getting sent too often and seemed to annoy users.

I agree, there needs to be some system to notify users they can't be DM's, while at the same time not annoying the user with messages. I'd like to solve this in a future update.

@KevinNovak KevinNovak changed the title Handling DM Failures Handle direct message failures if user has blocked bot or enabled privacy settings for the server Dec 19, 2020
@KevinNovak KevinNovak added the enhancement New feature or request label Dec 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants