Is there a way to make a Discord Bot DM a user when a gui is clicked? If there is please help! This would be useful, and I would pay a low sum to the person that helps.
You could use a multitude of web hooks and other off-site programs that you’d have to host, however it’d be a pretty bad idea for a few reasons.
- If the user isn’t sharing a server with the bot, what happens?
- If the user puts in an invalid user, what happens?
- etc, etc…
You could make use of RoVer’s public API to get the discord user correlated to the account.
Using HTTPService, send a POST (PostAsync) to the website you’re hosting the bot on including the player’s UserId as a parameter [Make sure it’s in JSON format, use JSONEncode to do so].
Then using RoVer’s public API you can get a user accosiated with the account and send a DM.
Unfortunately due to abuse/fears of privacy and stalking evaera had made it so you cannot retrieve a Discord ID from providing a ROBLOX ID without being provided with an API key from evaera herself. You can still retrieve a ROBLOX ID from a Discord ID, as that’s all you really need to create a verification bot, although for this thread’s purpose this would not be possible.
Would you mind providing documentation for this change? I can’t seem to find it on the API page!
I don’t believe @evaera has updated the page. Although, it can be seen when attempting to get the endpoint, for example see my own roblox id:
https://verify.eryn.io/api/roblox/1838551
Returns the following: {"status":"error","error":"Invalid API key","errorCode":403,"users":[],"NOTICE":"Due to abuse, this endpoint requires an API key. To request one, please send send an email to e@eryn.io with a detailed description of your use case. -- You can reverse lookup users by Roblox ID who are already in your server with the !reverselookup command with the OFFICIAL RoVer bot."}
So it’d be for a tech company that I’d want to dm a file. I can make it that a discord web hook gets sent with the players Discord Name & Tag as its name, and the message what product they bought. Then I’ll make a discord bot that senses when a message is sent in this channel. When a message is sent, it’ll DM the person the stuff. Sound like a good idea?