Tabletop Simulator

Tabletop Simulator

Not enough ratings
Discord Invite Links
   
Award
Favorite
Favorited
Unfavorite
Type: Utility
Complexity: Low Complexity
File Size
Posted
Updated
9.995 KB
20 Mar, 2022 @ 7:55am
9 Apr, 2022 @ 12:49am
4 Change Notes ( view )

Subscribe to download
Discord Invite Links

Description
Formatting and API utility to send formatted invite links to Discord using Webhooks
CC0 https://creativecommons.org/publicdomain/zero/1.0/ Modify/Distribute freely

How do I get a webhook?
Discord makes it easy to create server/channel specific webhooks as a server owner/admin
Server Settings > Integrations > Webhooks > New Webhook to create one

What do I do with this webhook?
Copy the Webhook URL and paste it in to the assets name field, optionally change the webhook variable in the script to your link and set usescriptwebhook = false to usescriptwebhook = true

You can now send invite links with the !invite command from within Tabletop Simulator

Webhook information and good practices:
Without going in to the code and tech details, webhooks are links that allow external applications to post requests with content that gets sent to your Discord server/channel. In the hands of a malicious actor with rudimentary code knowledge they can be abused to spam with messages.

If this is a concern to you then it is strongly recommended that you set your webhook url in the script instead of using the publicly visible name field and only share the asset/link with users you trust. You can at any point just click on Delete Webhook to invalidate your link.
8 Comments
Kijan 3 Sep, 2022 @ 1:57am 
for people like me, how have problems, that the link does not work.
It only works, if your profile and your games are public
Mumu 8 Apr, 2022 @ 8:41am 
I'm not familiar with LUA but it doesn't work for me without changing the asset name.
However it works after I deleted the following script.
```
if usescriptwebhook == false then
webhook = self.getName()
end
```
It's quite convenient to save the object which could be easily used by other discord members. Thanks! :mhwgood:
ulia  [author] 27 Mar, 2022 @ 8:57pm 
wrong chat, use the game chat tab
Rabisco 27 Mar, 2022 @ 6:55pm 
When I tip !help the program say's that I "must have one registered nick" someone knows how to fix it?
ulia  [author] 21 Mar, 2022 @ 12:07pm 
You can post your modification or "fork it" (reupload your version) if you want to provide that for users not familiar with scripting. I forgot to include it with the script but you can consider everything in the mod as CC0/Copyleft as it's more of a barebones proof of concept than something you would realistically deploy as is.
☭Shyster Effd☭ 21 Mar, 2022 @ 11:54am 
Also awesome work!
☭Shyster Effd☭ 21 Mar, 2022 @ 11:54am 
I added buttons to it since I'm super lazy typing in !help and !invite every time. If you want the code let me know. Honestly you could probably do it, since I did it in 5 minutes
3JA2 20 Mar, 2022 @ 9:58am 
Wow, This is one of the most cool workshops i've seen!
Thanks for the upload!:steamthumbsup::steamthis::steamhappy: