@plexcord/types 1.17.6 → 1.17.7

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@plexcord/types",
3
3
  "private": false,
4
- "version": "1.17.6",
4
+ "version": "1.17.7",
5
5
  "description": "",
6
6
  "types": "index.d.ts",
7
7
  "scripts": {
@@ -21,7 +21,9 @@ export declare const settings: import("../../utils/types").DefinedSettings<{
21
21
  appID?: string;
22
22
  appName?: string;
23
23
  details?: string;
24
+ detailsURL?: string;
24
25
  state?: string;
26
+ stateURL?: string;
25
27
  type?: ActivityType;
26
28
  streamLink?: string;
27
29
  timestampMode?: TimestampMode;
@@ -29,8 +31,10 @@ export declare const settings: import("../../utils/types").DefinedSettings<{
29
31
  endTime?: number;
30
32
  imageBig?: string;
31
33
  imageBigTooltip?: string;
34
+ imageBigURL?: string;
32
35
  imageSmall?: string;
33
36
  imageSmallTooltip?: string;
37
+ imageSmallURL?: string;
34
38
  buttonOneText?: string;
35
39
  buttonOneURL?: string;
36
40
  buttonTwoText?: string;
@@ -63,7 +67,9 @@ declare const _default: {
63
67
  appID?: string;
64
68
  appName?: string;
65
69
  details?: string;
70
+ detailsURL?: string;
66
71
  state?: string;
72
+ stateURL?: string;
67
73
  type?: ActivityType;
68
74
  streamLink?: string;
69
75
  timestampMode?: TimestampMode;
@@ -71,8 +77,10 @@ declare const _default: {
71
77
  endTime?: number;
72
78
  imageBig?: string;
73
79
  imageBigTooltip?: string;
80
+ imageBigURL?: string;
74
81
  imageSmall?: string;
75
82
  imageSmallTooltip?: string;
83
+ imageSmallURL?: string;
76
84
  buttonOneText?: string;
77
85
  buttonOneURL?: string;
78
86
  buttonTwoText?: string;
@@ -1,9 +1,9 @@
1
1
  export declare const images: {
2
- readonly cross: "https://i.imgur.com/XxRnu3b.png";
2
+ readonly cross: "https://github.com/MutanPlex/random-files/raw/main/icons/loginwithqr/cross.png";
3
3
  readonly deviceImage: {
4
- readonly success: "https://github.com/nexpid/Themelings/raw/data/icons/images/native/img_remote_auth_succeeded.png";
5
- readonly notFound: "https://github.com/nexpid/Themelings/raw/data/icons/images/native/img_remote_auth_not_found.png";
6
- readonly loading: "https://github.com/nexpid/Themelings/raw/data/icons/images/native/img_remote_auth_loaded.png";
4
+ readonly success: "https://github.com/MutanPlex/random-files/raw/main/icons/loginwithqr/success.png";
5
+ readonly notFound: "https://github.com/MutanPlex/random-files/raw/main/icons/loginwithqr/not-found.png";
6
+ readonly loading: "https://github.com/MutanPlex/random-files/raw/main/icons/loginwithqr/loaded.png";
7
7
  };
8
8
  };
9
9
  export declare let unload: () => void;
@@ -6,15 +6,18 @@ declare const _default: {
6
6
  name: string;
7
7
  id: bigint;
8
8
  }[];
9
+ readonly displayDescription: string;
9
10
  commands: ({
10
11
  name: string;
11
12
  description: string;
13
+ readonly displayDescription: string;
12
14
  options: import("@plexcord/discord-types").CommandOption[];
13
- inputType: ApplicationCommandInputType.BOT;
15
+ inputType: ApplicationCommandInputType.BUILT_IN;
14
16
  execute: (opts: import("@plexcord/discord-types").CommandArgument[], ctx: import("@plexcord/discord-types").CommandContext) => void;
15
17
  } | {
16
18
  name: string;
17
19
  description: string;
20
+ readonly displayDescription: string;
18
21
  options: import("@plexcord/discord-types").CommandOption[];
19
22
  execute: (opts: import("@plexcord/discord-types").CommandArgument[]) => {
20
23
  content: string;
@@ -23,6 +26,7 @@ declare const _default: {
23
26
  } | {
24
27
  name: string;
25
28
  description: string;
29
+ readonly displayDescription: string;
26
30
  options: never[];
27
31
  execute: (opts: import("@plexcord/discord-types").CommandArgument[], ctx: import("@plexcord/discord-types").CommandContext) => {
28
32
  content: string;
@@ -31,9 +35,11 @@ declare const _default: {
31
35
  } | {
32
36
  name: string;
33
37
  description: string;
38
+ readonly displayDescription: string;
34
39
  options: {
35
40
  name: string;
36
41
  description: string;
42
+ readonly displayDescription: string;
37
43
  type: ApplicationCommandOptionType.STRING;
38
44
  required: true;
39
45
  choices: {
@@ -49,11 +55,79 @@ declare const _default: {
49
55
  } | {
50
56
  name: string;
51
57
  description: string;
58
+ readonly displayDescription: string;
59
+ options: {
60
+ name: string;
61
+ description: string;
62
+ readonly displayDescription: string;
63
+ type: ApplicationCommandOptionType.INTEGER;
64
+ required: true;
65
+ }[];
66
+ execute: (opts: import("@plexcord/discord-types").CommandArgument[]) => {
67
+ content: string;
68
+ };
69
+ inputType?: undefined;
70
+ } | {
71
+ name: string;
72
+ description: string;
73
+ readonly displayDescription: string;
52
74
  execute: (opts: import("@plexcord/discord-types").CommandArgument[], ctx: import("@plexcord/discord-types").CommandContext) => Promise<{
53
75
  content: string;
54
76
  }>;
55
77
  options?: undefined;
56
78
  inputType?: undefined;
79
+ } | {
80
+ name: string;
81
+ description: string;
82
+ readonly displayDescription: string;
83
+ options: ({
84
+ name: string;
85
+ description: string;
86
+ readonly displayDescription: string;
87
+ type: ApplicationCommandOptionType.STRING;
88
+ required: true;
89
+ choices: {
90
+ name: string;
91
+ value: string;
92
+ label: string;
93
+ }[];
94
+ } | {
95
+ name: string;
96
+ description: string;
97
+ readonly displayDescription: string;
98
+ type: ApplicationCommandOptionType.INTEGER;
99
+ required: false;
100
+ choices?: undefined;
101
+ } | {
102
+ name: string;
103
+ description: string;
104
+ readonly displayDescription: string;
105
+ type: ApplicationCommandOptionType.BOOLEAN;
106
+ required: false;
107
+ choices?: undefined;
108
+ } | {
109
+ name: string;
110
+ description: string;
111
+ readonly displayDescription: string;
112
+ type: ApplicationCommandOptionType.STRING;
113
+ required: false;
114
+ choices: {
115
+ name: string;
116
+ value: string;
117
+ label: string;
118
+ }[];
119
+ } | {
120
+ name: string;
121
+ description: string;
122
+ readonly displayDescription: string;
123
+ type: ApplicationCommandOptionType.STRING;
124
+ required: true;
125
+ choices?: undefined;
126
+ })[];
127
+ execute: (opts: import("@plexcord/discord-types").CommandArgument[]) => {
128
+ content: string;
129
+ };
130
+ inputType?: undefined;
57
131
  })[];
58
132
  } & Record<PropertyKey, any> & import("../../utils/types").Plugin;
59
133
  export default _default;
@@ -1,331 +0,0 @@
1
- import { ApplicationCommandInputType, ApplicationCommandOptionType } from "../../api/Commands";
2
- import { NavContextMenuPatchCallback } from "../../api/ContextMenu";
3
- import { CommandArgument, CommandContext } from "@plexcord/discord-types";
4
- import { OptionType } from "../../utils/types";
5
- declare function SettingsComponent(props: {
6
- setValue(v: any): void;
7
- }): import("react").JSX.Element;
8
- declare const _default: {
9
- name: string;
10
- description: string;
11
- authors: {
12
- name: string;
13
- id: bigint;
14
- }[];
15
- settings: import("../../utils/types").DefinedSettings<{
16
- fileUploader: {
17
- readonly label: string;
18
- readonly description: string;
19
- type: OptionType.SELECT;
20
- options: ({
21
- label: string;
22
- value: string;
23
- default?: undefined;
24
- } | {
25
- label: string;
26
- value: string;
27
- default: true;
28
- })[];
29
- hidden: true;
30
- };
31
- gofileToken: {
32
- readonly label: string;
33
- readonly description: string;
34
- type: OptionType.STRING;
35
- default: string;
36
- hidden: true;
37
- };
38
- autoSend: {
39
- readonly label: string;
40
- readonly description: string;
41
- type: OptionType.SELECT;
42
- options: ({
43
- label: string;
44
- value: string;
45
- default?: undefined;
46
- } | {
47
- label: string;
48
- value: string;
49
- default: true;
50
- })[];
51
- hidden: true;
52
- };
53
- autoFormat: {
54
- readonly label: string;
55
- readonly description: string;
56
- type: OptionType.SELECT;
57
- options: ({
58
- label: string;
59
- value: string;
60
- default?: undefined;
61
- } | {
62
- label: string;
63
- value: string;
64
- default: true;
65
- })[];
66
- hidden: true;
67
- };
68
- catboxUserHash: {
69
- readonly label: string;
70
- readonly description: string;
71
- type: OptionType.STRING;
72
- default: string;
73
- hidden: true;
74
- };
75
- litterboxTime: {
76
- readonly label: string;
77
- readonly description: string;
78
- type: OptionType.SELECT;
79
- options: ({
80
- label: string;
81
- value: string;
82
- default: true;
83
- } | {
84
- label: string;
85
- value: string;
86
- default?: undefined;
87
- })[];
88
- hidden: true;
89
- };
90
- customUploaderName: {
91
- readonly label: string;
92
- readonly description: string;
93
- type: OptionType.STRING;
94
- default: string;
95
- hidden: true;
96
- };
97
- customUploaderRequestURL: {
98
- readonly label: string;
99
- readonly description: string;
100
- type: OptionType.STRING;
101
- default: string;
102
- hidden: true;
103
- };
104
- customUploaderFileFormName: {
105
- readonly label: string;
106
- readonly description: string;
107
- type: OptionType.STRING;
108
- default: string;
109
- hidden: true;
110
- };
111
- customUploaderResponseType: {
112
- readonly label: string;
113
- readonly description: string;
114
- type: OptionType.SELECT;
115
- options: ({
116
- label: string;
117
- value: string;
118
- default: true;
119
- } | {
120
- label: string;
121
- value: string;
122
- default?: undefined;
123
- })[];
124
- hidden: true;
125
- };
126
- customUploaderURL: {
127
- readonly label: string;
128
- readonly description: string;
129
- type: OptionType.STRING;
130
- default: string;
131
- hidden: true;
132
- };
133
- customUploaderThumbnailURL: {
134
- readonly label: string;
135
- readonly description: string;
136
- type: OptionType.STRING;
137
- default: string;
138
- hidden: true;
139
- };
140
- customUploaderHeaders: {
141
- readonly label: string;
142
- readonly description: string;
143
- type: OptionType.STRING;
144
- default: string;
145
- hidden: true;
146
- };
147
- customUploaderArgs: {
148
- readonly label: string;
149
- readonly description: string;
150
- type: OptionType.STRING;
151
- default: string;
152
- hidden: true;
153
- };
154
- customSettings: {
155
- readonly label: string;
156
- readonly description: string;
157
- type: OptionType.COMPONENT;
158
- component: typeof SettingsComponent;
159
- hidden: false;
160
- };
161
- }, import("../../utils/types").SettingsChecks<{
162
- fileUploader: {
163
- readonly label: string;
164
- readonly description: string;
165
- type: OptionType.SELECT;
166
- options: ({
167
- label: string;
168
- value: string;
169
- default?: undefined;
170
- } | {
171
- label: string;
172
- value: string;
173
- default: true;
174
- })[];
175
- hidden: true;
176
- };
177
- gofileToken: {
178
- readonly label: string;
179
- readonly description: string;
180
- type: OptionType.STRING;
181
- default: string;
182
- hidden: true;
183
- };
184
- autoSend: {
185
- readonly label: string;
186
- readonly description: string;
187
- type: OptionType.SELECT;
188
- options: ({
189
- label: string;
190
- value: string;
191
- default?: undefined;
192
- } | {
193
- label: string;
194
- value: string;
195
- default: true;
196
- })[];
197
- hidden: true;
198
- };
199
- autoFormat: {
200
- readonly label: string;
201
- readonly description: string;
202
- type: OptionType.SELECT;
203
- options: ({
204
- label: string;
205
- value: string;
206
- default?: undefined;
207
- } | {
208
- label: string;
209
- value: string;
210
- default: true;
211
- })[];
212
- hidden: true;
213
- };
214
- catboxUserHash: {
215
- readonly label: string;
216
- readonly description: string;
217
- type: OptionType.STRING;
218
- default: string;
219
- hidden: true;
220
- };
221
- litterboxTime: {
222
- readonly label: string;
223
- readonly description: string;
224
- type: OptionType.SELECT;
225
- options: ({
226
- label: string;
227
- value: string;
228
- default: true;
229
- } | {
230
- label: string;
231
- value: string;
232
- default?: undefined;
233
- })[];
234
- hidden: true;
235
- };
236
- customUploaderName: {
237
- readonly label: string;
238
- readonly description: string;
239
- type: OptionType.STRING;
240
- default: string;
241
- hidden: true;
242
- };
243
- customUploaderRequestURL: {
244
- readonly label: string;
245
- readonly description: string;
246
- type: OptionType.STRING;
247
- default: string;
248
- hidden: true;
249
- };
250
- customUploaderFileFormName: {
251
- readonly label: string;
252
- readonly description: string;
253
- type: OptionType.STRING;
254
- default: string;
255
- hidden: true;
256
- };
257
- customUploaderResponseType: {
258
- readonly label: string;
259
- readonly description: string;
260
- type: OptionType.SELECT;
261
- options: ({
262
- label: string;
263
- value: string;
264
- default: true;
265
- } | {
266
- label: string;
267
- value: string;
268
- default?: undefined;
269
- })[];
270
- hidden: true;
271
- };
272
- customUploaderURL: {
273
- readonly label: string;
274
- readonly description: string;
275
- type: OptionType.STRING;
276
- default: string;
277
- hidden: true;
278
- };
279
- customUploaderThumbnailURL: {
280
- readonly label: string;
281
- readonly description: string;
282
- type: OptionType.STRING;
283
- default: string;
284
- hidden: true;
285
- };
286
- customUploaderHeaders: {
287
- readonly label: string;
288
- readonly description: string;
289
- type: OptionType.STRING;
290
- default: string;
291
- hidden: true;
292
- };
293
- customUploaderArgs: {
294
- readonly label: string;
295
- readonly description: string;
296
- type: OptionType.STRING;
297
- default: string;
298
- hidden: true;
299
- };
300
- customSettings: {
301
- readonly label: string;
302
- readonly description: string;
303
- type: OptionType.COMPONENT;
304
- component: typeof SettingsComponent;
305
- hidden: false;
306
- };
307
- }>, {
308
- customUploaderArgs?: Record<string, string>;
309
- customUploaderHeaders?: Record<string, string>;
310
- }>;
311
- readonly displayDescription: string;
312
- dependencies: string[];
313
- contextMenus: {
314
- "channel-attach": NavContextMenuPatchCallback;
315
- };
316
- commands: {
317
- inputType: ApplicationCommandInputType.BUILT_IN;
318
- name: string;
319
- description: string;
320
- readonly displayDescription: string;
321
- options: {
322
- name: string;
323
- description: string;
324
- readonly displayDescription: string;
325
- type: ApplicationCommandOptionType.ATTACHMENT;
326
- required: true;
327
- }[];
328
- execute: (opts: CommandArgument[], cmdCtx: CommandContext) => Promise<void>;
329
- }[];
330
- } & Record<PropertyKey, any> & import("../../utils/types").Plugin;
331
- export default _default;
@@ -1,4 +0,0 @@
1
- export declare function uploadFileToGofileNative(_: any, url: string, fileBuffer: ArrayBuffer, fileName: string, fileType: string, token?: string): Promise<string>;
2
- export declare function uploadFileToCatboxNative(_: any, url: string, fileBuffer: ArrayBuffer, fileName: string, fileType: string, userHash: string): Promise<string>;
3
- export declare function uploadFileToLitterboxNative(_: any, fileBuffer: ArrayBuffer, fileName: string, fileType: string, time: string): Promise<string>;
4
- export declare function uploadFileCustomNative(_: any, url: string, fileBuffer: ArrayBuffer, fileName: string, fileType: string, fileFormName: string, customArgs: Record<string, string>, customHeaders: Record<string, string>, responseType: string, urlPath: string[]): Promise<string>;
@@ -1,19 +0,0 @@
1
- declare function ResetCard(): import("react").JSX.Element;
2
- declare const _default: {
3
- name: string;
4
- description: string;
5
- authors: {
6
- name: string;
7
- id: bigint;
8
- }[];
9
- readonly displayDescription: string;
10
- ResetCard: typeof ResetCard;
11
- patches: {
12
- find: string;
13
- replacement: {
14
- match: RegExp;
15
- replace: string;
16
- };
17
- }[];
18
- } & Record<PropertyKey, any> & import("../../utils/types").Plugin;
19
- export default _default;
@@ -1,2 +0,0 @@
1
- export declare function RequestRandomUser(): Promise<string>;
2
- export declare function ToBase64ImageUrl(_: any, data: any): Promise<string>;
@@ -1,150 +0,0 @@
1
- import "./styles.css";
2
- declare const _default: {
3
- name: string;
4
- description: string;
5
- authors: {
6
- name: string;
7
- id: bigint;
8
- }[];
9
- settings: import("../../utils/types").DefinedSettings<{
10
- messageImages: {
11
- readonly label: string;
12
- readonly description: string;
13
- type: import("../../utils/types").OptionType.BOOLEAN;
14
- default: true;
15
- restartNeeded: true;
16
- };
17
- messageAvatars: {
18
- readonly label: string;
19
- readonly description: string;
20
- type: import("../../utils/types").OptionType.BOOLEAN;
21
- default: true;
22
- restartNeeded: true;
23
- };
24
- messageLinks: {
25
- readonly label: string;
26
- readonly description: string;
27
- type: import("../../utils/types").OptionType.BOOLEAN;
28
- default: true;
29
- restartNeeded: true;
30
- };
31
- messageStickers: {
32
- readonly label: string;
33
- readonly description: string;
34
- type: import("../../utils/types").OptionType.BOOLEAN;
35
- default: true;
36
- restartNeeded: true;
37
- };
38
- mouseOnlyMode: {
39
- readonly label: string;
40
- readonly description: string;
41
- type: import("../../utils/types").OptionType.BOOLEAN;
42
- default: false;
43
- };
44
- fixedImage: {
45
- readonly label: string;
46
- readonly description: string;
47
- type: import("../../utils/types").OptionType.BOOLEAN;
48
- default: false;
49
- };
50
- fileInformation: {
51
- readonly label: string;
52
- readonly description: string;
53
- type: import("../../utils/types").OptionType.BOOLEAN;
54
- default: true;
55
- };
56
- hoverDelay: {
57
- readonly label: string;
58
- readonly description: string;
59
- type: import("../../utils/types").OptionType.SLIDER;
60
- default: number;
61
- markers: number[];
62
- };
63
- zoomFactor: {
64
- readonly label: string;
65
- readonly description: string;
66
- type: import("../../utils/types").OptionType.SLIDER;
67
- default: number;
68
- markers: number[];
69
- };
70
- defaultMaxSize: {
71
- readonly label: string;
72
- readonly description: string;
73
- type: import("../../utils/types").OptionType.STRING;
74
- default: string;
75
- onChange: (value: string) => void;
76
- };
77
- }, import("../../utils/types").SettingsChecks<{
78
- messageImages: {
79
- readonly label: string;
80
- readonly description: string;
81
- type: import("../../utils/types").OptionType.BOOLEAN;
82
- default: true;
83
- restartNeeded: true;
84
- };
85
- messageAvatars: {
86
- readonly label: string;
87
- readonly description: string;
88
- type: import("../../utils/types").OptionType.BOOLEAN;
89
- default: true;
90
- restartNeeded: true;
91
- };
92
- messageLinks: {
93
- readonly label: string;
94
- readonly description: string;
95
- type: import("../../utils/types").OptionType.BOOLEAN;
96
- default: true;
97
- restartNeeded: true;
98
- };
99
- messageStickers: {
100
- readonly label: string;
101
- readonly description: string;
102
- type: import("../../utils/types").OptionType.BOOLEAN;
103
- default: true;
104
- restartNeeded: true;
105
- };
106
- mouseOnlyMode: {
107
- readonly label: string;
108
- readonly description: string;
109
- type: import("../../utils/types").OptionType.BOOLEAN;
110
- default: false;
111
- };
112
- fixedImage: {
113
- readonly label: string;
114
- readonly description: string;
115
- type: import("../../utils/types").OptionType.BOOLEAN;
116
- default: false;
117
- };
118
- fileInformation: {
119
- readonly label: string;
120
- readonly description: string;
121
- type: import("../../utils/types").OptionType.BOOLEAN;
122
- default: true;
123
- };
124
- hoverDelay: {
125
- readonly label: string;
126
- readonly description: string;
127
- type: import("../../utils/types").OptionType.SLIDER;
128
- default: number;
129
- markers: number[];
130
- };
131
- zoomFactor: {
132
- readonly label: string;
133
- readonly description: string;
134
- type: import("../../utils/types").OptionType.SLIDER;
135
- default: number;
136
- markers: number[];
137
- };
138
- defaultMaxSize: {
139
- readonly label: string;
140
- readonly description: string;
141
- type: import("../../utils/types").OptionType.STRING;
142
- default: string;
143
- onChange: (value: string) => void;
144
- };
145
- }>, {}>;
146
- readonly displayDescription: string;
147
- start(): void;
148
- stop(): void;
149
- } & Record<PropertyKey, any> & import("../../utils/types").Plugin;
150
- export default _default;
@@ -1,142 +0,0 @@
1
- import { OptionType } from "../../utils/types";
2
- declare const settings: import("../../utils/types").DefinedSettings<{
3
- messageImages: {
4
- readonly label: string;
5
- readonly description: string;
6
- type: OptionType.BOOLEAN;
7
- default: true;
8
- restartNeeded: true;
9
- };
10
- messageAvatars: {
11
- readonly label: string;
12
- readonly description: string;
13
- type: OptionType.BOOLEAN;
14
- default: true;
15
- restartNeeded: true;
16
- };
17
- messageLinks: {
18
- readonly label: string;
19
- readonly description: string;
20
- type: OptionType.BOOLEAN;
21
- default: true;
22
- restartNeeded: true;
23
- };
24
- messageStickers: {
25
- readonly label: string;
26
- readonly description: string;
27
- type: OptionType.BOOLEAN;
28
- default: true;
29
- restartNeeded: true;
30
- };
31
- mouseOnlyMode: {
32
- readonly label: string;
33
- readonly description: string;
34
- type: OptionType.BOOLEAN;
35
- default: false;
36
- };
37
- fixedImage: {
38
- readonly label: string;
39
- readonly description: string;
40
- type: OptionType.BOOLEAN;
41
- default: false;
42
- };
43
- fileInformation: {
44
- readonly label: string;
45
- readonly description: string;
46
- type: OptionType.BOOLEAN;
47
- default: true;
48
- };
49
- hoverDelay: {
50
- readonly label: string;
51
- readonly description: string;
52
- type: OptionType.SLIDER;
53
- default: number;
54
- markers: number[];
55
- };
56
- zoomFactor: {
57
- readonly label: string;
58
- readonly description: string;
59
- type: OptionType.SLIDER;
60
- default: number;
61
- markers: number[];
62
- };
63
- defaultMaxSize: {
64
- readonly label: string;
65
- readonly description: string;
66
- type: OptionType.STRING;
67
- default: string;
68
- onChange: (value: string) => void;
69
- };
70
- }, import("../../utils/types").SettingsChecks<{
71
- messageImages: {
72
- readonly label: string;
73
- readonly description: string;
74
- type: OptionType.BOOLEAN;
75
- default: true;
76
- restartNeeded: true;
77
- };
78
- messageAvatars: {
79
- readonly label: string;
80
- readonly description: string;
81
- type: OptionType.BOOLEAN;
82
- default: true;
83
- restartNeeded: true;
84
- };
85
- messageLinks: {
86
- readonly label: string;
87
- readonly description: string;
88
- type: OptionType.BOOLEAN;
89
- default: true;
90
- restartNeeded: true;
91
- };
92
- messageStickers: {
93
- readonly label: string;
94
- readonly description: string;
95
- type: OptionType.BOOLEAN;
96
- default: true;
97
- restartNeeded: true;
98
- };
99
- mouseOnlyMode: {
100
- readonly label: string;
101
- readonly description: string;
102
- type: OptionType.BOOLEAN;
103
- default: false;
104
- };
105
- fixedImage: {
106
- readonly label: string;
107
- readonly description: string;
108
- type: OptionType.BOOLEAN;
109
- default: false;
110
- };
111
- fileInformation: {
112
- readonly label: string;
113
- readonly description: string;
114
- type: OptionType.BOOLEAN;
115
- default: true;
116
- };
117
- hoverDelay: {
118
- readonly label: string;
119
- readonly description: string;
120
- type: OptionType.SLIDER;
121
- default: number;
122
- markers: number[];
123
- };
124
- zoomFactor: {
125
- readonly label: string;
126
- readonly description: string;
127
- type: OptionType.SLIDER;
128
- default: number;
129
- markers: number[];
130
- };
131
- defaultMaxSize: {
132
- readonly label: string;
133
- readonly description: string;
134
- type: OptionType.STRING;
135
- default: string;
136
- onChange: (value: string) => void;
137
- };
138
- }>, {}>;
139
- declare function getMimeType(extension: string | undefined): [boolean, string];
140
- declare function isLinkAnImage(url: string): boolean;
141
- declare function stripDiscordParams(url: string): string;
142
- export { getMimeType, isLinkAnImage, settings, stripDiscordParams };
@@ -1,9 +0,0 @@
1
- import { ModalProps } from "../../utils/modal";
2
- export declare function DependencyModal({ props, options: { key, checkytdlp, checkffmpeg } }: {
3
- props: ModalProps;
4
- options: {
5
- key: string;
6
- checkytdlp: () => Promise<boolean>;
7
- checkffmpeg: () => Promise<boolean>;
8
- };
9
- }): import("react").JSX.Element;
@@ -1,164 +0,0 @@
1
- import "./style.css";
2
- import { ApplicationCommandInputType, ApplicationCommandOptionType } from "../../api/Commands";
3
- import { OptionType, ReporterTestable } from "../../utils/types";
4
- type ButtonComponent = {
5
- customId?: string;
6
- disabled?: boolean;
7
- emoji?: {
8
- animated?: boolean | string;
9
- id?: string;
10
- name?: string;
11
- src?: string;
12
- };
13
- id: string;
14
- label?: string;
15
- style: number;
16
- type: number;
17
- url?: string;
18
- };
19
- declare const _default: {
20
- name: string;
21
- description: string;
22
- authors: {
23
- name: string;
24
- id: bigint;
25
- }[];
26
- reporterTestable: ReporterTestable;
27
- settings: import("../../utils/types").DefinedSettings<{
28
- supportedWebsites: {
29
- readonly label: string;
30
- readonly description: string;
31
- type: OptionType.COMPONENT;
32
- default: string;
33
- component: () => import("react").JSX.Element;
34
- };
35
- showProgress: {
36
- readonly label: string;
37
- readonly description: string;
38
- type: OptionType.BOOLEAN;
39
- default: true;
40
- };
41
- showFfmpegWarning: {
42
- readonly label: string;
43
- readonly description: string;
44
- type: OptionType.BOOLEAN;
45
- default: true;
46
- };
47
- defaultGifQuality: {
48
- readonly label: string;
49
- readonly description: string;
50
- type: OptionType.NUMBER;
51
- default: number;
52
- };
53
- ytdlpArgs: {
54
- readonly label: string;
55
- readonly description: string;
56
- type: OptionType.STRING;
57
- placeholder: string;
58
- };
59
- ffmpegArgs: {
60
- readonly label: string;
61
- readonly description: string;
62
- type: OptionType.STRING;
63
- placeholder: string;
64
- };
65
- }, {
66
- defaultGifQuality: {
67
- isValid(this: import("../../utils/types").DefinedSettings<{
68
- supportedWebsites: {
69
- readonly label: string;
70
- readonly description: string;
71
- type: OptionType.COMPONENT;
72
- default: string;
73
- component: () => import("react").JSX.Element;
74
- };
75
- showProgress: {
76
- readonly label: string;
77
- readonly description: string;
78
- type: OptionType.BOOLEAN;
79
- default: true;
80
- };
81
- showFfmpegWarning: {
82
- readonly label: string;
83
- readonly description: string;
84
- type: OptionType.BOOLEAN;
85
- default: true;
86
- };
87
- defaultGifQuality: {
88
- readonly label: string;
89
- readonly description: string;
90
- type: OptionType.NUMBER;
91
- default: number;
92
- };
93
- ytdlpArgs: {
94
- readonly label: string;
95
- readonly description: string;
96
- type: OptionType.STRING;
97
- placeholder: string;
98
- };
99
- ffmpegArgs: {
100
- readonly label: string;
101
- readonly description: string;
102
- type: OptionType.STRING;
103
- placeholder: string;
104
- };
105
- }, {}, {}>, value: number): boolean;
106
- };
107
- }, {}>;
108
- readonly displayDescription: string;
109
- commands: {
110
- inputType: ApplicationCommandInputType.BUILT_IN;
111
- name: string;
112
- description: string;
113
- readonly displayDescription: string;
114
- options: ({
115
- name: string;
116
- description: string;
117
- readonly displayDescription: string;
118
- required: true;
119
- type: ApplicationCommandOptionType.STRING;
120
- choices?: undefined;
121
- } | {
122
- name: string;
123
- description: string;
124
- readonly displayDescription: string;
125
- type: ApplicationCommandOptionType.STRING;
126
- choices: {
127
- name: string;
128
- value: string;
129
- label: string;
130
- }[];
131
- required: false;
132
- } | {
133
- name: string;
134
- type: ApplicationCommandOptionType.INTEGER;
135
- description: string;
136
- readonly displayDescription: string;
137
- required: false;
138
- choices: {
139
- name: string;
140
- value: string;
141
- label: string;
142
- }[];
143
- } | {
144
- name: string;
145
- description: string;
146
- readonly displayDescription: string;
147
- required: false;
148
- type: ApplicationCommandOptionType.STRING;
149
- choices?: undefined;
150
- })[];
151
- execute: (args: import("@plexcord/discord-types").CommandArgument[], ctx: import("@plexcord/discord-types").CommandContext) => Promise<void | import("@plexcord/discord-types").Message>;
152
- }[];
153
- patches: {
154
- find: string;
155
- replacement: {
156
- match: RegExp;
157
- replace: string;
158
- };
159
- }[];
160
- handleButtonClick: (buttonComponent: ButtonComponent) => void;
161
- start: () => Promise<void>;
162
- stop: () => Promise<void>;
163
- } & Record<PropertyKey, any> & import("../../utils/types").Plugin;
164
- export default _default;
@@ -1,27 +0,0 @@
1
- import { IpcMainInvokeEvent } from "electron";
2
- type Format = "video" | "audio" | "gif";
3
- type DownloadOptions = {
4
- url: string;
5
- format?: Format;
6
- gifQuality?: 1 | 2 | 3 | 4 | 5;
7
- ytdlpArgs?: string[];
8
- ffmpegArgs?: string[];
9
- maxFileSize?: number;
10
- };
11
- export declare function start(_: IpcMainInvokeEvent, _workdir: string | undefined): Promise<string>;
12
- export declare function stop(_: IpcMainInvokeEvent): Promise<void>;
13
- export declare function execute(_: IpcMainInvokeEvent, opt: DownloadOptions): Promise<{
14
- buffer: Buffer;
15
- title: string;
16
- logs: string;
17
- } | {
18
- error: string;
19
- logs: string;
20
- }>;
21
- export declare function checkffmpeg(_?: IpcMainInvokeEvent): boolean;
22
- export declare function checkytdlp(_?: IpcMainInvokeEvent): Promise<boolean>;
23
- export declare function interrupt(_: IpcMainInvokeEvent): Promise<void>;
24
- export declare const getStdout: () => string;
25
- export declare const isYtdlpAvailable: () => boolean;
26
- export declare const isFfmpegAvailable: () => boolean;
27
- export {};
@@ -1,33 +0,0 @@
1
- import { ApplicationCommandInputType, ApplicationCommandOptionType } from "../../api/Commands";
2
- declare const _default: {
3
- name: string;
4
- description: string;
5
- authors: {
6
- name: string;
7
- id: bigint;
8
- }[];
9
- settingsAboutComponent: () => import("react").JSX.Element;
10
- commands: {
11
- name: string;
12
- description: string;
13
- options: ({
14
- name: string;
15
- description: string;
16
- type: ApplicationCommandOptionType.INTEGER;
17
- required: true;
18
- } | {
19
- name: string;
20
- description: string;
21
- type: ApplicationCommandOptionType.CHANNEL;
22
- required: false;
23
- } | {
24
- name: string;
25
- description: string;
26
- type: ApplicationCommandOptionType.INTEGER;
27
- required: false;
28
- })[];
29
- inputType: ApplicationCommandInputType.BUILT_IN;
30
- execute: (opts: import("@plexcord/discord-types").CommandArgument[], ctx: import("@plexcord/discord-types").CommandContext) => Promise<void>;
31
- }[];
32
- } & Record<PropertyKey, any> & import("../../utils/types").Plugin;
33
- export default _default;
@@ -1,15 +0,0 @@
1
- import { NavContextMenuPatchCallback } from "../../api/ContextMenu";
2
- declare const _default: {
3
- name: string;
4
- description: string;
5
- authors: {
6
- name: string;
7
- id: bigint;
8
- }[];
9
- contextMenus: {
10
- message: NavContextMenuPatchCallback;
11
- };
12
- start(): void;
13
- stop(): void;
14
- } & Record<PropertyKey, any> & import("../../utils/types").Plugin;
15
- export default _default;
@@ -1 +0,0 @@
1
- export default function openFilePreview(name: string, blob: Blob, buffer: ArrayBuffer): void;
@@ -1,6 +0,0 @@
1
- export default function ZipPreview({ blob, name, expanded: expandedProp, onExpandedChange }: {
2
- blob: Blob;
3
- name?: string;
4
- expanded?: boolean;
5
- onExpandedChange?: (v: boolean) => void;
6
- }): import("react").JSX.Element;
@@ -1,25 +0,0 @@
1
- import "./styles.css";
2
- declare function MessageContextMenu(children: Array<any>, props: any): void;
3
- declare function ZipAttachmentPreview({ attachment }: {
4
- attachment: any;
5
- }): import("react").JSX.Element | undefined;
6
- declare const _default: {
7
- name: string;
8
- description: string;
9
- authors: {
10
- name: string;
11
- id: bigint;
12
- }[];
13
- patches: {
14
- find: string;
15
- replacement: {
16
- match: RegExp;
17
- replace: string;
18
- };
19
- }[];
20
- contextMenus: {
21
- message: typeof MessageContextMenu;
22
- };
23
- ZipAttachmentPreview: typeof ZipAttachmentPreview;
24
- } & Record<PropertyKey, any> & import("../../utils/types").Plugin;
25
- export default _default;
@@ -1,12 +0,0 @@
1
- export type ZipEntry = {
2
- name: string;
3
- isDirectory: boolean;
4
- compressedSize: number;
5
- size: number;
6
- offset: number;
7
- compression: number;
8
- };
9
- export declare function unzipBlob(blob: Blob): Promise<{
10
- entries: ZipEntry[];
11
- readEntry: (e: ZipEntry) => Promise<ArrayBuffer>;
12
- }>;