aboutsummaryrefslogtreecommitdiff
path: root/cleaners/socialmedia.ts
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2021-02-13 13:56:19 -0600
committermat <27899617+mat-1@users.noreply.github.com>2021-02-13 13:56:19 -0600
commita23103ec24128f2e24b93ad101ade6dfdd4758c3 (patch)
treec4d543a2003062a7c213d37f5d06a826c2a88798 /cleaners/socialmedia.ts
parentd7b9d1fc5cfc8c648604eb1d178091873ea698a6 (diff)
downloadskyblock-api-a23103ec24128f2e24b93ad101ade6dfdd4758c3.tar.gz
skyblock-api-a23103ec24128f2e24b93ad101ade6dfdd4758c3.tar.bz2
skyblock-api-a23103ec24128f2e24b93ad101ade6dfdd4758c3.zip
Basic profile stats
Diffstat (limited to 'cleaners/socialmedia.ts')
-rw-r--r--cleaners/socialmedia.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/cleaners/socialmedia.ts b/cleaners/socialmedia.ts
new file mode 100644
index 0000000..c1f9551
--- /dev/null
+++ b/cleaners/socialmedia.ts
@@ -0,0 +1,14 @@
+import { HypixelPlayerSocialMedia } from "../hypixelApi";
+
+export interface CleanSocialMedia {
+ discord: string | null
+ forums: string | null
+}
+
+export function parseSocialMedia(socialMedia: HypixelPlayerSocialMedia): CleanSocialMedia {
+ return {
+ discord: socialMedia?.links?.DISCORD || null,
+ forums: socialMedia?.links?.HYPIXEL || null
+ }
+}
+