aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/reviewDB/reviewDbApi.ts
diff options
context:
space:
mode:
authorManti <67705577+mantikafasi@users.noreply.github.com>2023-09-21 18:16:15 +0300
committerGitHub <noreply@github.com>2023-09-21 17:16:15 +0200
commite5c0898dd6ee4bae213aa2d727e15714739d2f91 (patch)
treeb429661bc240115992c70b36974068139cc39a55 /src/plugins/reviewDB/reviewDbApi.ts
parent9550b74b2ac00be97201855efc85bc527926d610 (diff)
downloadVencord-e5c0898dd6ee4bae213aa2d727e15714739d2f91.tar.gz
Vencord-e5c0898dd6ee4bae213aa2d727e15714739d2f91.tar.bz2
Vencord-e5c0898dd6ee4bae213aa2d727e15714739d2f91.zip
[ReviewDB] add emojis, discord markdown & notifications (#1718)
Co-authored-by: V <vendicated@riseup.net>
Diffstat (limited to 'src/plugins/reviewDB/reviewDbApi.ts')
-rw-r--r--src/plugins/reviewDB/reviewDbApi.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/reviewDB/reviewDbApi.ts b/src/plugins/reviewDB/reviewDbApi.ts
index e8008c8..5370a9b 100644
--- a/src/plugins/reviewDB/reviewDbApi.ts
+++ b/src/plugins/reviewDB/reviewDbApi.ts
@@ -140,3 +140,12 @@ export function getCurrentUserInfo(token: string): Promise<ReviewDBUser> {
method: "POST",
}).then(r => r.json());
}
+
+export function readNotification(id: number) {
+ return fetch(API_URL + `/api/reviewdb/notifications?id=${id}`, {
+ method: "PATCH",
+ headers: {
+ "Authorization": settings.store.token || "",
+ },
+ });
+}