Ability to check if DMs are disabled #3747
Replies: 4 comments 16 replies
-
Yes, this is pretty much needed. Right now you gotta send test message if it sends, delete the message in some cases so 2 api calls for nothing |
Beta Was this translation helpful? Give feedback.
-
This would lead to two API calls: one to check if you can DM a user, and one to actually send the DM. Currently, you have both features in a single API call: you send the DM, and if you got a 403, that means you are not allowed to send DM. I don't see how this proposition would be useful unless you have a very specific use case where you want to check if you can DM a user without actually sending a DM. |
Beta Was this translation helpful? Give feedback.
-
Well then at that point you’d also be rate limited for sending too many
test dms and deleting them, and then sending another message…
…On Wed, 1 Sep 2021 at 7:18 pm, Simon Beal ***@***.***> wrote:
Discord gives you an API ban if you get too many 403s. Whilst my bot
doesn't normally send many DMs, it wouldn't be too awful to have a user bot
farm killing off bots by getting them to DM you and blocking them on repeat
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3747 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AM6DLUSXMSCSWBY5P2QV7HDT7ZU6RANCNFSM5DDF35AQ>
.
|
Beta Was this translation helpful? Give feedback.
-
If you’re concerned about api spam, then I would like to suggest mass-checking dms. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I would prefer if I could check if the bot is capable of dm’ing the bot - rather than catch the error and handle it.
Beta Was this translation helpful? Give feedback.
All reactions