Sopur / Discord-user-bots

Working discord user bots library.
MIT License
81 stars 35 forks source link

How to sed direct messege to another user? #32

Closed Frenzied-Dog closed 1 year ago

Frenzied-Dog commented 1 year ago

It seems that client.send can only sed message to a channel.

Pig0Brine commented 1 year ago

Dms still take place in channels

Sopur commented 1 year ago

I'm guessing your confusion is coming from the fact that right clicking "copy id" on a DM does not give a channel ID user accounts can use. If you want to get the ID of specific DMs, open up inspect element, go to the network tab, and start typing in the DM you want to copy. You should see that the discord client sent a typing event which contains the correct ID of the DM in the URL. If you're using the web version of Discord, click on the DM of your choice and copy the DM ID located in the URL of the page.