Can the Discord API be used to send messages between two discord users?



  • donovan_dmc

    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

  • JDJG

    probably safe to make a connection listener, then sending them through the bot.