Is it possible to dm someone on Discord through a webhook?

I know you can do it to a channel in a server, I know you do that like this:

local url = "" 
local http = game:GetService("HttpService")
local HookData = {
['username'] = "Product handler", 
['content'] = "Here is your product: (url)"
}
HookData = http:JSONEncode(HookData)
http:PostAsync(url, HookData

But is it possible to do it in a DM instead of a channel?

thx

2 comments

0

I tried to post a question like this and moderation was taken against it

0

No.