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 4 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 — 4y
0
No. JakyeRU 637 — 4y

Answer this question