-
Notifications
You must be signed in to change notification settings - Fork 10
genDiscordURI
Carlos Alba edited this page Nov 25, 2020
·
4 revisions
This is a utility function that generates server links for our discord. In the future, it can be extended to create links for event and temporary servers. It's mostly to mitigate annoying automated scrapping and spamming bots from getting the link. Returns the type DiscordURI, which is just an abstraction of a string. DO NOT USE WITH SaferLink or a Link tag; it's useless since build tools will use the generated string. This should only be used with goURI.
Example:
<Button onClick={() => goURI(genDiscordURI('dg'))} color={Colors.STRONG_BLUE}>Join Our Discord!</Button>Made with