aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-05-10 23:14:04 +0200
committerGitHub <noreply@github.com>2023-05-10 23:14:04 +0200
commitcb385d1b280551eb16f1f9836a93cc9bcc43da15 (patch)
tree87897b84fe78d4d10686981c8bd1c31a5326b46d /src/utils
parent195f1a032fc63d4fd35564a9d11f8ed4afbcac4d (diff)
downloadVencord-cb385d1b280551eb16f1f9836a93cc9bcc43da15.tar.gz
Vencord-cb385d1b280551eb16f1f9836a93cc9bcc43da15.tar.bz2
Vencord-cb385d1b280551eb16f1f9836a93cc9bcc43da15.zip
New Plugin: Translate (#1089)
Co-authored-by: Nuckyz <61953774+Nuckyz@users.noreply.github.com>
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/types.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/utils/types.ts b/src/utils/types.ts
index 60dc4d4..5c7a85c 100644
--- a/src/utils/types.ts
+++ b/src/utils/types.ts
@@ -147,9 +147,16 @@ export interface PluginSettingCommon {
description: string;
placeholder?: string;
onChange?(newValue: any): void;
+ /**
+ * Whether changing this setting requires a restart
+ */
restartNeeded?: boolean;
componentProps?: Record<string, any>;
/**
+ * Hide this setting from the settings UI
+ */
+ hidden?: boolean;
+ /**
* Set this if the setting only works on Browser or Desktop, not both
*/
target?: "WEB" | "DESKTOP" | "BOTH";