Can the Discord API be used to send messages between two discord users?
Hi, I have never used the API would like to know if it is possible to "Send messages between two discord users?"
If both are authorized with my app.
Not only bot to users.
Thank you
-
not with just oauth scopes (at least not easily)
you can't send messages as people, but you can forward them between them
a gateway connection would be best for this, though you can use oauth for knowing who the users are (getting their id)
as long as neither of them have you blocked, and both have their dms open, you can forward messages back between them, with the normal dm create routes, and listening for message create (on shard 0 only) with the channel type of dm
1 -
probably safe to make a connection listener, then sending them through the bot.
0
Please sign in to leave a comment.
Comments
2 comments