Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is it possible to make a Discord bot direct message someone through a webhook?

Asked by 5 years ago

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

0
I tried to post a question like this and moderation was taken against it KDarren12 705 — 5y
0
No. JakyeRU 637 — 5y

Answer this question