@plexcord/types 1.19.2 → 1.19.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/AudioPlayer.d.ts +1 -1
- package/api/Badges.d.ts +1 -1
- package/api/Settings.d.ts +2 -2
- package/components/Button.d.ts +1 -1
- package/components/CodeBlock.d.ts +6 -0
- package/locales/en.d.ts +32 -10
- package/package.json +1 -1
- package/plugins/_api/badges/index.d.ts +10 -4
- package/plugins/_api/userArea.d.ts +1 -1
- package/plugins/betterFolders/index.d.ts +1 -1
- package/plugins/betterSettings/index.d.ts +1 -1
- package/plugins/clipsEnhancements/index.d.ts +1 -1
- package/plugins/disCleaner/index.d.ts +37 -1
- package/plugins/fixImagesQuality/index.d.ts +2 -1
- package/plugins/messageLoggerEnhanced/utils/cleanUp.d.ts +1 -1
- package/plugins/permissionsViewer/components/RolesAndUsersPermissions.d.ts +1 -13
- package/plugins/platformIndicators/index.d.ts +69 -13
- package/plugins/roleColorEverywhere/index.d.ts +1 -1
- package/plugins/showAllMessageButtons/index.d.ts +15 -2
- package/plugins/showHiddenChannels/components/HiddenChannelLockScreen.d.ts +1 -28
- package/plugins/stickerBlocker/index.d.ts +1 -0
- package/plugins/typingTweaks/index.d.ts +25 -2
- package/plugins/usrbg/index.d.ts +1 -1
- package/plugins/webScreenShareFixes.web/index.d.ts +15 -0
- package/utils/discord.d.ts +0 -7
- package/webpack/common/stores.d.ts +4 -0
- package/webpack/common/utils.d.ts +2 -0
- package/plugins/amITyping/index.d.ts +0 -16
package/api/AudioPlayer.d.ts
CHANGED
|
@@ -139,7 +139,7 @@ export declare function identifyAudioType(audio: string): AudioType;
|
|
|
139
139
|
/**
|
|
140
140
|
* Adds a function to process an audio before it is played.
|
|
141
141
|
* @param key A unique identifier for this audio processor. Plugin name is recommended.
|
|
142
|
-
* @param processor A function that takes
|
|
142
|
+
* @param processor A function that takes a data object with audio, volume (0-100), and type (AudioType) attributes, and modifies the audio and volume in place.
|
|
143
143
|
*/
|
|
144
144
|
export declare function addAudioProcessor(key: string, processor: AudioProcessor): void;
|
|
145
145
|
/**
|
package/api/Badges.d.ts
CHANGED
package/api/Settings.d.ts
CHANGED
|
@@ -91,10 +91,10 @@ export declare const Settings: Settings;
|
|
|
91
91
|
* @returns Settings
|
|
92
92
|
*/
|
|
93
93
|
export declare function useSettings(paths?: UseSettings<Settings>[]): Settings;
|
|
94
|
-
export declare function migratePluginToSettings(newName: string, oldName: string, ...settingNames: string[]): void;
|
|
95
94
|
export declare function migratePluginSettings(name: string, ...oldNames: string[]): void;
|
|
96
95
|
export declare function migratePluginSetting(pluginName: string, newSetting: string, oldSetting: string): void;
|
|
97
|
-
export declare function
|
|
96
|
+
export declare function migratePluginToSettings(deleteOldSettings: boolean, newName: string, oldName: string, ...settingNames: string[]): void;
|
|
97
|
+
export declare function migrateSettingsFromPlugin(newPlugin: string, oldPlugin: string, ...settings: string[]): void;
|
|
98
98
|
export declare function definePluginSettings<Def extends SettingsDefinition, Checks extends SettingsChecks<Def>, PrivateSettings extends object = {}>(def: Def, checks?: Checks): DefinedSettings<Def, Checks, PrivateSettings>;
|
|
99
99
|
type UseSettings<T extends object> = ResolveUseSettings<T>[keyof T];
|
|
100
100
|
type ResolveUseSettings<T extends object> = {
|
package/components/Button.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import "./Button.css";
|
|
|
2
2
|
import type { Button as DiscordButton } from "@plexcord/discord-types";
|
|
3
3
|
import type { ComponentPropsWithRef } from "react";
|
|
4
4
|
export type ButtonVariant = "primary" | "secondary" | "dangerPrimary" | "dangerSecondary" | "overlayPrimary" | "positive" | "link" | "none";
|
|
5
|
-
export type ButtonSize = "min" | "xs" | "small" | "medium";
|
|
5
|
+
export type ButtonSize = "min" | "xs" | "small" | "medium" | "iconOnly";
|
|
6
6
|
export type ButtonProps = ComponentPropsWithRef<"button"> & {
|
|
7
7
|
variant?: ButtonVariant;
|
|
8
8
|
size?: ButtonSize;
|
|
@@ -5,3 +5,9 @@ export declare function CodeBlock(props: {
|
|
|
5
5
|
content?: string;
|
|
6
6
|
lang: string;
|
|
7
7
|
}): import("react").JSX.Element;
|
|
8
|
+
/**
|
|
9
|
+
* Renders inline code like `this`
|
|
10
|
+
*/
|
|
11
|
+
export declare function InlineCode({ children }: {
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
}): import("react").JSX.Element;
|
package/locales/en.d.ts
CHANGED
|
@@ -326,6 +326,7 @@ declare const translations: {
|
|
|
326
326
|
readonly contributor: {
|
|
327
327
|
readonly plexcord: "Plexcord Contributor";
|
|
328
328
|
readonly vencord: "Vencord Contributor";
|
|
329
|
+
readonly userPlugin: "User Plugin Contributor";
|
|
329
330
|
};
|
|
330
331
|
readonly context: {
|
|
331
332
|
readonly title: "Badges Options";
|
|
@@ -1059,10 +1060,6 @@ declare const translations: {
|
|
|
1059
1060
|
readonly cancel: "Cancel";
|
|
1060
1061
|
};
|
|
1061
1062
|
};
|
|
1062
|
-
readonly amITyping: {
|
|
1063
|
-
readonly name: "AmITyping";
|
|
1064
|
-
readonly description: "Shows you if other people can see you typing.";
|
|
1065
|
-
};
|
|
1066
1063
|
readonly anonymiseFileNames: {
|
|
1067
1064
|
readonly name: "AnonymiseFileNames";
|
|
1068
1065
|
readonly description: "Anonymise uploaded file names";
|
|
@@ -3611,12 +3608,16 @@ declare const translations: {
|
|
|
3611
3608
|
};
|
|
3612
3609
|
readonly disCleaner: {
|
|
3613
3610
|
readonly name: "DisCleaner";
|
|
3614
|
-
readonly description: "
|
|
3611
|
+
readonly description: "Hides various features related to nitro and the store";
|
|
3615
3612
|
readonly option: {
|
|
3616
3613
|
readonly dms: {
|
|
3617
3614
|
readonly label: "DMs";
|
|
3618
3615
|
readonly description: "Remove shops above DMs list";
|
|
3619
3616
|
};
|
|
3617
|
+
readonly quests: {
|
|
3618
|
+
readonly label: "Quests";
|
|
3619
|
+
readonly description: "Remove quests above DMs list";
|
|
3620
|
+
};
|
|
3620
3621
|
readonly serverBoost: {
|
|
3621
3622
|
readonly label: "Server Boost";
|
|
3622
3623
|
readonly description: "Remove server boost info above channel list";
|
|
@@ -8904,6 +8905,10 @@ declare const translations: {
|
|
|
8904
8905
|
readonly label: "Alternative Formatting";
|
|
8905
8906
|
readonly description: "Show a more useful message when several users are typing";
|
|
8906
8907
|
};
|
|
8908
|
+
readonly amITyping: {
|
|
8909
|
+
readonly label: "Am I Typing";
|
|
8910
|
+
readonly description: "Shows you if other people can see you typing";
|
|
8911
|
+
};
|
|
8907
8912
|
};
|
|
8908
8913
|
readonly others: {
|
|
8909
8914
|
readonly areTyping: "and {{count}} others are typing...";
|
|
@@ -9442,6 +9447,12 @@ declare const translations: {
|
|
|
9442
9447
|
readonly webScreenShareFixes: {
|
|
9443
9448
|
readonly name: "WebScreenShareFixes";
|
|
9444
9449
|
readonly description: "Removes 2500kbps bitrate cap on chromium and Plextron clients.";
|
|
9450
|
+
readonly option: {
|
|
9451
|
+
readonly experimentalAV1Support: {
|
|
9452
|
+
readonly label: "Experimental AV1 Support";
|
|
9453
|
+
readonly description: "Enable AV1 codec support. May cause issues like infinitely loading streams";
|
|
9454
|
+
};
|
|
9455
|
+
};
|
|
9445
9456
|
};
|
|
9446
9457
|
readonly whoReacted: {
|
|
9447
9458
|
readonly name: "WhoReacted";
|
|
@@ -9901,6 +9912,7 @@ export declare const plugins: DeepKeyProxy<{
|
|
|
9901
9912
|
readonly contributor: {
|
|
9902
9913
|
readonly plexcord: "Plexcord Contributor";
|
|
9903
9914
|
readonly vencord: "Vencord Contributor";
|
|
9915
|
+
readonly userPlugin: "User Plugin Contributor";
|
|
9904
9916
|
};
|
|
9905
9917
|
readonly context: {
|
|
9906
9918
|
readonly title: "Badges Options";
|
|
@@ -10634,10 +10646,6 @@ export declare const plugin: DeepKeyProxy<{
|
|
|
10634
10646
|
readonly cancel: "Cancel";
|
|
10635
10647
|
};
|
|
10636
10648
|
};
|
|
10637
|
-
readonly amITyping: {
|
|
10638
|
-
readonly name: "AmITyping";
|
|
10639
|
-
readonly description: "Shows you if other people can see you typing.";
|
|
10640
|
-
};
|
|
10641
10649
|
readonly anonymiseFileNames: {
|
|
10642
10650
|
readonly name: "AnonymiseFileNames";
|
|
10643
10651
|
readonly description: "Anonymise uploaded file names";
|
|
@@ -13186,12 +13194,16 @@ export declare const plugin: DeepKeyProxy<{
|
|
|
13186
13194
|
};
|
|
13187
13195
|
readonly disCleaner: {
|
|
13188
13196
|
readonly name: "DisCleaner";
|
|
13189
|
-
readonly description: "
|
|
13197
|
+
readonly description: "Hides various features related to nitro and the store";
|
|
13190
13198
|
readonly option: {
|
|
13191
13199
|
readonly dms: {
|
|
13192
13200
|
readonly label: "DMs";
|
|
13193
13201
|
readonly description: "Remove shops above DMs list";
|
|
13194
13202
|
};
|
|
13203
|
+
readonly quests: {
|
|
13204
|
+
readonly label: "Quests";
|
|
13205
|
+
readonly description: "Remove quests above DMs list";
|
|
13206
|
+
};
|
|
13195
13207
|
readonly serverBoost: {
|
|
13196
13208
|
readonly label: "Server Boost";
|
|
13197
13209
|
readonly description: "Remove server boost info above channel list";
|
|
@@ -18479,6 +18491,10 @@ export declare const plugin: DeepKeyProxy<{
|
|
|
18479
18491
|
readonly label: "Alternative Formatting";
|
|
18480
18492
|
readonly description: "Show a more useful message when several users are typing";
|
|
18481
18493
|
};
|
|
18494
|
+
readonly amITyping: {
|
|
18495
|
+
readonly label: "Am I Typing";
|
|
18496
|
+
readonly description: "Shows you if other people can see you typing";
|
|
18497
|
+
};
|
|
18482
18498
|
};
|
|
18483
18499
|
readonly others: {
|
|
18484
18500
|
readonly areTyping: "and {{count}} others are typing...";
|
|
@@ -19017,6 +19033,12 @@ export declare const plugin: DeepKeyProxy<{
|
|
|
19017
19033
|
readonly webScreenShareFixes: {
|
|
19018
19034
|
readonly name: "WebScreenShareFixes";
|
|
19019
19035
|
readonly description: "Removes 2500kbps bitrate cap on chromium and Plextron clients.";
|
|
19036
|
+
readonly option: {
|
|
19037
|
+
readonly experimentalAV1Support: {
|
|
19038
|
+
readonly label: "Experimental AV1 Support";
|
|
19039
|
+
readonly description: "Enable AV1 codec support. May cause issues like infinitely loading streams";
|
|
19040
|
+
};
|
|
19041
|
+
};
|
|
19020
19042
|
};
|
|
19021
19043
|
readonly whoReacted: {
|
|
19022
19044
|
readonly name: "WhoReacted";
|
package/package.json
CHANGED
|
@@ -12,21 +12,27 @@ declare const _default: {
|
|
|
12
12
|
id: bigint;
|
|
13
13
|
}[];
|
|
14
14
|
required: true;
|
|
15
|
-
patches: {
|
|
15
|
+
patches: ({
|
|
16
16
|
find: string;
|
|
17
17
|
replacement: {
|
|
18
18
|
match: RegExp;
|
|
19
19
|
replace: string;
|
|
20
20
|
}[];
|
|
21
|
-
}
|
|
22
|
-
|
|
21
|
+
} | {
|
|
22
|
+
find: string;
|
|
23
|
+
replacement: {
|
|
24
|
+
match: RegExp;
|
|
25
|
+
replace: string;
|
|
26
|
+
};
|
|
27
|
+
})[];
|
|
28
|
+
readonly DonorBadges: Record<string, Record<"badge" | "tooltip", string>[]>;
|
|
23
29
|
toolboxActions: () => {
|
|
24
30
|
[x: string]: () => Promise<void>;
|
|
25
31
|
};
|
|
26
32
|
userProfileBadges: ProfileBadge[];
|
|
27
33
|
start(): Promise<void>;
|
|
28
34
|
stop(): Promise<void>;
|
|
29
|
-
|
|
35
|
+
getBadges(profile: {
|
|
30
36
|
userId: string;
|
|
31
37
|
guildId: string;
|
|
32
38
|
}): ProfileBadge[];
|
|
@@ -17,6 +17,6 @@ declare const _default: {
|
|
|
17
17
|
}, styles: {
|
|
18
18
|
iconForeground?: string;
|
|
19
19
|
}): import("react").JSX.Element[];
|
|
20
|
-
shouldHideTooltips():
|
|
20
|
+
shouldHideTooltips(): boolean;
|
|
21
21
|
} & Record<PropertyKey, any> & import("../../utils/types").Plugin;
|
|
22
22
|
export default _default;
|
|
@@ -342,7 +342,7 @@ declare const _default: {
|
|
|
342
342
|
};
|
|
343
343
|
FolderSideBar: import("react").FunctionComponent<any>;
|
|
344
344
|
closeFolders: typeof closeFolders;
|
|
345
|
-
wrapGuildNodeComponent(node: any, originalComponent: () => ReactNode, isBetterFolders: boolean, expandedFolderIds?: Set<any>): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").
|
|
345
|
+
wrapGuildNodeComponent(node: any, originalComponent: () => ReactNode, isBetterFolders: boolean, expandedFolderIds?: Set<any>): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
|
|
346
346
|
makeGuildsBarGuildListFilter(isBetterFolders: boolean): (child: any) => boolean;
|
|
347
347
|
makeGuildsBarSidebarFilter(isBetterFolders: boolean): (child: any) => boolean;
|
|
348
348
|
shouldShowFolderIconAndBackground(isBetterFolders: boolean, expandedFolderIds?: Set<any>): boolean;
|
|
@@ -96,7 +96,7 @@ declare const _default: {
|
|
|
96
96
|
})[];
|
|
97
97
|
buildPluginMenuEntries: typeof buildPluginMenuEntries;
|
|
98
98
|
buildThemeMenuEntries: typeof buildThemeMenuEntries;
|
|
99
|
-
Layer(props: LayerProps): string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | ReactElement<unknown, string | import("react").JSXElementConstructor<any>> |
|
|
99
|
+
Layer(props: LayerProps): string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
|
|
100
100
|
transformSettingsEntries(list: SettingsEntry[], keyMap: Map<string, string>): TransformedSettingsEntry[];
|
|
101
101
|
wrapMap(toWrap: TransformedSettingsEntry[]): TransformedSettingsEntry[];
|
|
102
102
|
} & Record<PropertyKey, any> & import("../../utils/types").Plugin;
|
|
@@ -65,6 +65,6 @@ declare const _default: {
|
|
|
65
65
|
})[];
|
|
66
66
|
patchTimeslots(timeslots: SelectOption[]): SelectOption[];
|
|
67
67
|
patchFramerates(framerates: SelectOption[]): SelectOption[];
|
|
68
|
-
getApplicationId(activityName: string): string | null;
|
|
68
|
+
getApplicationId(activityName: string): string | null | undefined;
|
|
69
69
|
} & Record<PropertyKey, any> & import("../../utils/types").Plugin;
|
|
70
70
|
export default _default;
|
|
@@ -7,6 +7,13 @@ export declare const settings: import("../../utils/types").DefinedSettings<{
|
|
|
7
7
|
default: true;
|
|
8
8
|
restartNeeded: true;
|
|
9
9
|
};
|
|
10
|
+
quests: {
|
|
11
|
+
label: () => string;
|
|
12
|
+
description: () => string;
|
|
13
|
+
type: OptionType.BOOLEAN;
|
|
14
|
+
default: false;
|
|
15
|
+
restartNeeded: true;
|
|
16
|
+
};
|
|
10
17
|
serverBoost: {
|
|
11
18
|
label: () => string;
|
|
12
19
|
description: () => string;
|
|
@@ -43,6 +50,13 @@ export declare const settings: import("../../utils/types").DefinedSettings<{
|
|
|
43
50
|
default: true;
|
|
44
51
|
restartNeeded: true;
|
|
45
52
|
};
|
|
53
|
+
quests: {
|
|
54
|
+
label: () => string;
|
|
55
|
+
description: () => string;
|
|
56
|
+
type: OptionType.BOOLEAN;
|
|
57
|
+
default: false;
|
|
58
|
+
restartNeeded: true;
|
|
59
|
+
};
|
|
46
60
|
serverBoost: {
|
|
47
61
|
label: () => string;
|
|
48
62
|
description: () => string;
|
|
@@ -87,6 +101,13 @@ declare const _default: {
|
|
|
87
101
|
default: true;
|
|
88
102
|
restartNeeded: true;
|
|
89
103
|
};
|
|
104
|
+
quests: {
|
|
105
|
+
label: () => string;
|
|
106
|
+
description: () => string;
|
|
107
|
+
type: OptionType.BOOLEAN;
|
|
108
|
+
default: false;
|
|
109
|
+
restartNeeded: true;
|
|
110
|
+
};
|
|
90
111
|
serverBoost: {
|
|
91
112
|
label: () => string;
|
|
92
113
|
description: () => string;
|
|
@@ -123,6 +144,13 @@ declare const _default: {
|
|
|
123
144
|
default: true;
|
|
124
145
|
restartNeeded: true;
|
|
125
146
|
};
|
|
147
|
+
quests: {
|
|
148
|
+
label: () => string;
|
|
149
|
+
description: () => string;
|
|
150
|
+
type: OptionType.BOOLEAN;
|
|
151
|
+
default: false;
|
|
152
|
+
restartNeeded: true;
|
|
153
|
+
};
|
|
126
154
|
serverBoost: {
|
|
127
155
|
label: () => string;
|
|
128
156
|
description: () => string;
|
|
@@ -157,8 +185,9 @@ declare const _default: {
|
|
|
157
185
|
replacement: {
|
|
158
186
|
match: RegExp;
|
|
159
187
|
replace: string;
|
|
188
|
+
predicate: () => boolean;
|
|
160
189
|
}[];
|
|
161
|
-
predicate
|
|
190
|
+
predicate?: undefined;
|
|
162
191
|
} | {
|
|
163
192
|
find: string;
|
|
164
193
|
replacement: {
|
|
@@ -166,6 +195,13 @@ declare const _default: {
|
|
|
166
195
|
replace: string;
|
|
167
196
|
};
|
|
168
197
|
predicate: () => boolean;
|
|
198
|
+
} | {
|
|
199
|
+
find: string;
|
|
200
|
+
replacement: {
|
|
201
|
+
match: RegExp;
|
|
202
|
+
replace: string;
|
|
203
|
+
}[];
|
|
204
|
+
predicate: () => boolean;
|
|
169
205
|
})[];
|
|
170
206
|
} & Record<PropertyKey, any> & import("../../utils/types").Plugin;
|
|
171
207
|
export default _default;
|
|
@@ -31,10 +31,11 @@ declare const _default: {
|
|
|
31
31
|
settingsAboutComponent(): import("react").JSX.Element;
|
|
32
32
|
getSrc(props: {
|
|
33
33
|
src: string;
|
|
34
|
-
mediaLayoutType: string;
|
|
35
34
|
width: number;
|
|
36
35
|
height: number;
|
|
37
36
|
contentType: string;
|
|
37
|
+
mosaicStyleAlt?: boolean;
|
|
38
|
+
trigger?: string;
|
|
38
39
|
}, freeze?: boolean): string | undefined;
|
|
39
40
|
} & Record<PropertyKey, any> & import("../../utils/types").Plugin;
|
|
40
41
|
export default _default;
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
import { Guild } from "@plexcord/discord-types";
|
|
2
|
-
export declare const enum PermissionType {
|
|
3
|
-
Role = 0,
|
|
4
|
-
User = 1,
|
|
5
|
-
Owner = 2
|
|
6
|
-
}
|
|
7
|
-
export interface RoleOrUserPermission {
|
|
8
|
-
type: PermissionType;
|
|
9
|
-
id?: string;
|
|
10
|
-
permissions?: bigint;
|
|
11
|
-
overwriteAllow?: bigint;
|
|
12
|
-
overwriteDeny?: bigint;
|
|
13
|
-
}
|
|
1
|
+
import { Guild, RoleOrUserPermission } from "@plexcord/discord-types";
|
|
14
2
|
export default function openRolesAndUsersPermissionsModal(permissions: Array<RoleOrUserPermission>, guild: Guild, header: string): string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
import { OptionType } from "../../utils/types";
|
|
3
|
+
import type { JSX } from "react";
|
|
3
4
|
export interface Session {
|
|
4
5
|
sessionId: string;
|
|
5
6
|
status: string;
|
|
@@ -18,11 +19,75 @@ declare const _default: {
|
|
|
18
19
|
id: bigint;
|
|
19
20
|
}[];
|
|
20
21
|
dependencies: string[];
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
settings: import("../../utils/types").DefinedSettings<{
|
|
23
|
+
list: {
|
|
24
|
+
label: () => string;
|
|
25
|
+
description: () => string;
|
|
26
|
+
type: OptionType.BOOLEAN;
|
|
27
|
+
default: true;
|
|
28
|
+
};
|
|
29
|
+
badges: {
|
|
30
|
+
label: () => string;
|
|
31
|
+
description: () => string;
|
|
32
|
+
type: OptionType.BOOLEAN;
|
|
33
|
+
default: true;
|
|
34
|
+
};
|
|
35
|
+
messages: {
|
|
36
|
+
label: () => string;
|
|
37
|
+
description: () => string;
|
|
38
|
+
type: OptionType.BOOLEAN;
|
|
39
|
+
default: true;
|
|
40
|
+
};
|
|
41
|
+
colorMobileIndicator: {
|
|
42
|
+
label: () => string;
|
|
43
|
+
description: () => string;
|
|
44
|
+
type: OptionType.BOOLEAN;
|
|
45
|
+
default: true;
|
|
46
|
+
};
|
|
47
|
+
showBots: {
|
|
48
|
+
label: () => string;
|
|
49
|
+
description: () => string;
|
|
50
|
+
type: OptionType.BOOLEAN;
|
|
51
|
+
default: true;
|
|
52
|
+
};
|
|
53
|
+
}, import("../../utils/types").SettingsChecks<{
|
|
54
|
+
list: {
|
|
55
|
+
label: () => string;
|
|
56
|
+
description: () => string;
|
|
57
|
+
type: OptionType.BOOLEAN;
|
|
58
|
+
default: true;
|
|
59
|
+
};
|
|
60
|
+
badges: {
|
|
61
|
+
label: () => string;
|
|
62
|
+
description: () => string;
|
|
63
|
+
type: OptionType.BOOLEAN;
|
|
64
|
+
default: true;
|
|
65
|
+
};
|
|
66
|
+
messages: {
|
|
67
|
+
label: () => string;
|
|
68
|
+
description: () => string;
|
|
69
|
+
type: OptionType.BOOLEAN;
|
|
70
|
+
default: true;
|
|
71
|
+
};
|
|
72
|
+
colorMobileIndicator: {
|
|
73
|
+
label: () => string;
|
|
74
|
+
description: () => string;
|
|
75
|
+
type: OptionType.BOOLEAN;
|
|
76
|
+
default: true;
|
|
77
|
+
};
|
|
78
|
+
showBots: {
|
|
79
|
+
label: () => string;
|
|
80
|
+
description: () => string;
|
|
81
|
+
type: OptionType.BOOLEAN;
|
|
82
|
+
default: true;
|
|
83
|
+
};
|
|
84
|
+
}>, {}>;
|
|
85
|
+
renderNicknameIcon(props: import("../../api/NicknameIcons").NicknameIconProps): JSX.Element | null;
|
|
86
|
+
renderMemberListDecorator(props: import("../../api/MemberListDecorators").DecoratorProps): JSX.Element | null;
|
|
87
|
+
renderMessageDecoration(props: import("../../api/MessageDecorations").MessageDecorationProps): JSX.Element | null;
|
|
23
88
|
patches: ({
|
|
24
89
|
find: string;
|
|
25
|
-
predicate: () =>
|
|
90
|
+
predicate: () => boolean;
|
|
26
91
|
replacement: ({
|
|
27
92
|
match: RegExp;
|
|
28
93
|
replace: string;
|
|
@@ -32,20 +97,11 @@ declare const _default: {
|
|
|
32
97
|
})[];
|
|
33
98
|
} | {
|
|
34
99
|
find: string;
|
|
35
|
-
predicate: () =>
|
|
100
|
+
predicate: () => boolean;
|
|
36
101
|
replacement: {
|
|
37
102
|
match: RegExp;
|
|
38
103
|
replace: string;
|
|
39
104
|
};
|
|
40
105
|
})[];
|
|
41
|
-
options: {
|
|
42
|
-
colorMobileIndicator: {
|
|
43
|
-
label: () => string;
|
|
44
|
-
description: () => string;
|
|
45
|
-
type: OptionType.BOOLEAN;
|
|
46
|
-
default: true;
|
|
47
|
-
restartNeeded: true;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
106
|
} & Record<PropertyKey, any> & import("../../utils/types").Plugin;
|
|
51
107
|
export default _default;
|
|
@@ -35,10 +35,23 @@ declare const _default: {
|
|
|
35
35
|
}>, {}>;
|
|
36
36
|
patches: {
|
|
37
37
|
find: string;
|
|
38
|
-
replacement: {
|
|
38
|
+
replacement: ({
|
|
39
39
|
match: RegExp;
|
|
40
40
|
replace: string;
|
|
41
|
-
|
|
41
|
+
predicate?: undefined;
|
|
42
|
+
} | {
|
|
43
|
+
predicate: () => boolean;
|
|
44
|
+
match: RegExp;
|
|
45
|
+
replace: string;
|
|
46
|
+
})[];
|
|
42
47
|
}[];
|
|
48
|
+
deleteMessage({ channel_id, id }: {
|
|
49
|
+
channel_id: any;
|
|
50
|
+
id: any;
|
|
51
|
+
}): void;
|
|
52
|
+
toggleMessagePin({ channel, message }: {
|
|
53
|
+
channel: any;
|
|
54
|
+
message: any;
|
|
55
|
+
}): any;
|
|
43
56
|
} & Record<PropertyKey, any> & import("../../utils/types").Plugin;
|
|
44
57
|
export default _default;
|
|
@@ -1,32 +1,5 @@
|
|
|
1
1
|
import type { Channel } from "@plexcord/discord-types";
|
|
2
|
-
declare const enum SortOrderTypes {
|
|
3
|
-
LATEST_ACTIVITY = 0,
|
|
4
|
-
CREATION_DATE = 1
|
|
5
|
-
}
|
|
6
|
-
declare const enum ForumLayoutTypes {
|
|
7
|
-
DEFAULT = 0,
|
|
8
|
-
LIST = 1,
|
|
9
|
-
GRID = 2
|
|
10
|
-
}
|
|
11
|
-
interface DefaultReaction {
|
|
12
|
-
emojiId: string | null;
|
|
13
|
-
emojiName: string | null;
|
|
14
|
-
}
|
|
15
|
-
interface Tag {
|
|
16
|
-
id: string;
|
|
17
|
-
name: string;
|
|
18
|
-
emojiId: string | null;
|
|
19
|
-
emojiName: string | null;
|
|
20
|
-
moderated: boolean;
|
|
21
|
-
}
|
|
22
|
-
interface ExtendedChannel extends Channel {
|
|
23
|
-
defaultThreadRateLimitPerUser?: number;
|
|
24
|
-
defaultSortOrder?: SortOrderTypes | null;
|
|
25
|
-
defaultForumLayout?: ForumLayoutTypes;
|
|
26
|
-
defaultReactionEmoji?: DefaultReaction | null;
|
|
27
|
-
availableTags?: Array<Tag>;
|
|
28
|
-
}
|
|
29
2
|
declare const _default: import("react").FunctionComponent<{
|
|
30
|
-
channel:
|
|
3
|
+
channel: Channel;
|
|
31
4
|
}>;
|
|
32
5
|
export default _default;
|
|
@@ -20,6 +20,7 @@ declare const _default: {
|
|
|
20
20
|
"expression-picker": NavContextMenuPatchCallback;
|
|
21
21
|
};
|
|
22
22
|
start(): void;
|
|
23
|
+
isBlocked(stickerId: any): boolean;
|
|
23
24
|
blockedComponent: React.FunctionComponent<any>;
|
|
24
25
|
settings: import("../../utils/types").DefinedSettings<{
|
|
25
26
|
showGif: {
|
|
@@ -32,6 +32,13 @@ declare const _default: {
|
|
|
32
32
|
type: OptionType.BOOLEAN;
|
|
33
33
|
default: true;
|
|
34
34
|
};
|
|
35
|
+
amITyping: {
|
|
36
|
+
label: () => string;
|
|
37
|
+
description: () => string;
|
|
38
|
+
type: OptionType.BOOLEAN;
|
|
39
|
+
default: false;
|
|
40
|
+
restartNeeded: true;
|
|
41
|
+
};
|
|
35
42
|
}, import("../../utils/types").SettingsChecks<{
|
|
36
43
|
showAvatars: {
|
|
37
44
|
label: () => string;
|
|
@@ -51,9 +58,16 @@ declare const _default: {
|
|
|
51
58
|
type: OptionType.BOOLEAN;
|
|
52
59
|
default: true;
|
|
53
60
|
};
|
|
61
|
+
amITyping: {
|
|
62
|
+
label: () => string;
|
|
63
|
+
description: () => string;
|
|
64
|
+
type: OptionType.BOOLEAN;
|
|
65
|
+
default: false;
|
|
66
|
+
restartNeeded: true;
|
|
67
|
+
};
|
|
54
68
|
}>, {}>;
|
|
55
69
|
managedStyle: string;
|
|
56
|
-
patches: {
|
|
70
|
+
patches: ({
|
|
57
71
|
find: string;
|
|
58
72
|
group: true;
|
|
59
73
|
replacement: ({
|
|
@@ -65,7 +79,16 @@ declare const _default: {
|
|
|
65
79
|
replace: string;
|
|
66
80
|
predicate: () => boolean;
|
|
67
81
|
})[];
|
|
68
|
-
|
|
82
|
+
predicate?: undefined;
|
|
83
|
+
} | {
|
|
84
|
+
find: string;
|
|
85
|
+
predicate: () => boolean;
|
|
86
|
+
replacement: {
|
|
87
|
+
match: RegExp;
|
|
88
|
+
replace: string;
|
|
89
|
+
};
|
|
90
|
+
group?: undefined;
|
|
91
|
+
})[];
|
|
69
92
|
useTypingUsers(channel: Channel | undefined): User[];
|
|
70
93
|
buildSeveralUsers: import("react").FunctionComponent<{
|
|
71
94
|
users: User[];
|
package/plugins/usrbg/index.d.ts
CHANGED
|
@@ -67,11 +67,11 @@ declare const _default: {
|
|
|
67
67
|
predicate?: undefined;
|
|
68
68
|
} | {
|
|
69
69
|
find: string;
|
|
70
|
-
predicate: () => boolean;
|
|
71
70
|
replacement: {
|
|
72
71
|
match: RegExp;
|
|
73
72
|
replace: string;
|
|
74
73
|
}[];
|
|
74
|
+
predicate?: undefined;
|
|
75
75
|
} | {
|
|
76
76
|
find: string;
|
|
77
77
|
predicate: () => boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { OptionType } from "../../utils/types";
|
|
1
2
|
declare const _default: {
|
|
2
3
|
name: string;
|
|
3
4
|
description: () => string;
|
|
@@ -6,6 +7,19 @@ declare const _default: {
|
|
|
6
7
|
id: bigint;
|
|
7
8
|
}[];
|
|
8
9
|
enabledByDefault: true;
|
|
10
|
+
settings: import("../../utils/types").DefinedSettings<{
|
|
11
|
+
experimentalAV1Support: {
|
|
12
|
+
type: OptionType.BOOLEAN;
|
|
13
|
+
description: string;
|
|
14
|
+
default: false;
|
|
15
|
+
};
|
|
16
|
+
}, import("../../utils/types").SettingsChecks<{
|
|
17
|
+
experimentalAV1Support: {
|
|
18
|
+
type: OptionType.BOOLEAN;
|
|
19
|
+
description: string;
|
|
20
|
+
default: false;
|
|
21
|
+
};
|
|
22
|
+
}>, {}>;
|
|
9
23
|
patches: {
|
|
10
24
|
find: string;
|
|
11
25
|
replacement: ({
|
|
@@ -16,5 +30,6 @@ declare const _default: {
|
|
|
16
30
|
replace: string;
|
|
17
31
|
})[];
|
|
18
32
|
}[];
|
|
33
|
+
getCodecs(Codecs: Record<string, string>): string[];
|
|
19
34
|
} & Record<PropertyKey, any> & import("../../utils/types").Plugin;
|
|
20
35
|
export default _default;
|
package/utils/discord.d.ts
CHANGED
|
@@ -78,13 +78,6 @@ export declare function fetchUserProfile(id: string, options?: FetchUserProfileO
|
|
|
78
78
|
* Get the unique username for a user. Returns user.username for pomelo people, user.tag otherwise
|
|
79
79
|
*/
|
|
80
80
|
export declare function getUniqueUsername(user: User): string;
|
|
81
|
-
/**
|
|
82
|
-
* Get the URL for an emoji. This function always returns a gif URL for animated emojis, instead of webp
|
|
83
|
-
* @param id The emoji id
|
|
84
|
-
* @param animated Whether the emoji is animated
|
|
85
|
-
* @param size The size for the emoji
|
|
86
|
-
*/
|
|
87
|
-
export declare function getEmojiURL(id: string, animated: boolean, size: number): string;
|
|
88
81
|
export declare function getGuildAcronym(guild: Guild): string;
|
|
89
82
|
export declare function hasGuildFeature(guild: Guild, feature: GuildFeatures): boolean;
|
|
90
83
|
export {};
|
|
@@ -49,6 +49,10 @@ export declare let InviteStore: t.InviteStore;
|
|
|
49
49
|
export declare let LocaleStore: t.LocaleStore;
|
|
50
50
|
export declare let RTCConnectionStore: t.RTCConnectionStore;
|
|
51
51
|
export declare let SoundboardStore: t.SoundboardStore;
|
|
52
|
+
export declare let PopoutWindowStore: t.PopoutWindowStore;
|
|
53
|
+
export declare let ApplicationCommandIndexStore: t.ApplicationCommandIndexStore;
|
|
54
|
+
export declare let EditMessageStore: t.EditMessageStore;
|
|
55
|
+
export declare let QuestStore: t.QuestStore;
|
|
52
56
|
/**
|
|
53
57
|
* @see jsdoc of {@link t.useStateFromStores}
|
|
54
58
|
*/
|
|
@@ -80,6 +80,8 @@ export declare const ChannelActionCreators: any;
|
|
|
80
80
|
export declare const VoiceActions: any;
|
|
81
81
|
export declare const GuildActions: any;
|
|
82
82
|
export declare const ChannelActions: any;
|
|
83
|
+
export declare const DraftActions: any;
|
|
84
|
+
export declare const PinActions: any;
|
|
83
85
|
export declare const IconUtils: t.IconUtils;
|
|
84
86
|
export declare const ReadStateUtils: Record<"ackChannel", any>;
|
|
85
87
|
export declare const ExpressionPickerStore: t.ExpressionPickerStore;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
name: string;
|
|
3
|
-
description: () => string;
|
|
4
|
-
authors: {
|
|
5
|
-
name: string;
|
|
6
|
-
id: bigint;
|
|
7
|
-
}[];
|
|
8
|
-
patches: {
|
|
9
|
-
find: string;
|
|
10
|
-
replacement: {
|
|
11
|
-
match: RegExp;
|
|
12
|
-
replace: string;
|
|
13
|
-
};
|
|
14
|
-
}[];
|
|
15
|
-
} & Record<PropertyKey, any> & import("../../utils/types").Plugin;
|
|
16
|
-
export default _default;
|