aboutsummaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-06-13 02:36:25 +0200
committerV <vendicated@riseup.net>2023-06-13 03:45:05 +0200
commit07a9adbce25e42dcd4d1eb25ee011328d0543304 (patch)
treec4ea6230e57cc3a77adc53c25efb91ea148a6dea /src/api
parent42d8211871d84e2650f7c762c66e2ee2e6c58968 (diff)
downloadVencord-07a9adbce25e42dcd4d1eb25ee011328d0543304.tar.gz
Vencord-07a9adbce25e42dcd4d1eb25ee011328d0543304.tar.bz2
Vencord-07a9adbce25e42dcd4d1eb25ee011328d0543304.zip
🧹🧹
Diffstat (limited to 'src/api')
-rw-r--r--src/api/Badges.ts4
-rw-r--r--src/api/Commands/types.ts6
-rw-r--r--src/api/ServerList.ts2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/api/Badges.ts b/src/api/Badges.ts
index a0961c4..b50016c 100644
--- a/src/api/Badges.ts
+++ b/src/api/Badges.ts
@@ -22,7 +22,7 @@ import { ComponentType, HTMLProps } from "react";
import Plugins from "~plugins";
-export enum BadgePosition {
+export const enum BadgePosition {
START,
END
}
@@ -79,7 +79,7 @@ export function _getBadges(args: BadgeUserArgs) {
: badges.push({ ...badge, ...args });
}
}
- const donorBadges = (Plugins.BadgeAPI as unknown as typeof import("../plugins/apiBadges").default).getDonorBadges(args.user.id);
+ const donorBadges = (Plugins.BadgeAPI as unknown as typeof import("../plugins/_api/badges").default).getDonorBadges(args.user.id);
if (donorBadges) badges.unshift(...donorBadges);
return badges;
diff --git a/src/api/Commands/types.ts b/src/api/Commands/types.ts
index 9acab66..bd349e2 100644
--- a/src/api/Commands/types.ts
+++ b/src/api/Commands/types.ts
@@ -24,7 +24,7 @@ export interface CommandContext {
guild?: Guild;
}
-export enum ApplicationCommandOptionType {
+export const enum ApplicationCommandOptionType {
SUB_COMMAND = 1,
SUB_COMMAND_GROUP = 2,
STRING = 3,
@@ -38,7 +38,7 @@ export enum ApplicationCommandOptionType {
ATTACHMENT = 11,
}
-export enum ApplicationCommandInputType {
+export const enum ApplicationCommandInputType {
BUILT_IN = 0,
BUILT_IN_TEXT = 1,
BUILT_IN_INTEGRATION = 2,
@@ -64,7 +64,7 @@ export interface ChoicesOption {
displayName?: string;
}
-export enum ApplicationCommandType {
+export const enum ApplicationCommandType {
CHAT_INPUT = 1,
USER = 2,
MESSAGE = 3,
diff --git a/src/api/ServerList.ts b/src/api/ServerList.ts
index 4804413..75016e8 100644
--- a/src/api/ServerList.ts
+++ b/src/api/ServerList.ts
@@ -20,7 +20,7 @@ import { Logger } from "@utils/Logger";
const logger = new Logger("ServerListAPI");
-export enum ServerListRenderPosition {
+export const enum ServerListRenderPosition {
Above,
In,
}