@vencord/types 0.1.1 → 0.1.2
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/index.d.ts +5 -0
- package/api/settings.d.ts +1 -1
- package/components/ErrorBoundary.d.ts +1 -1
- package/components/PluginSettings/PluginModal.d.ts +2 -2
- package/components/PluginSettings/components/SettingBooleanComponent.d.ts +1 -1
- package/components/PluginSettings/components/SettingCustomComponent.d.ts +1 -1
- package/components/PluginSettings/components/SettingNumericComponent.d.ts +1 -1
- package/components/PluginSettings/components/SettingSelectComponent.d.ts +1 -1
- package/components/PluginSettings/components/SettingSliderComponent.d.ts +1 -1
- package/components/PluginSettings/components/SettingTextComponent.d.ts +1 -1
- package/components/PluginSettings/components/index.d.ts +1 -1
- package/globals.d.ts +0 -48
- package/package.json +1 -1
- package/plugins/anonymiseFileNames.d.ts +1 -1
- package/plugins/apiBadges.d.ts +1 -1
- package/plugins/banger.d.ts +1 -1
- package/plugins/betterFolders/index.d.ts +2 -2
- package/plugins/betterNotes.d.ts +1 -1
- package/plugins/betterRoleDot.d.ts +1 -1
- package/plugins/blurNsfw.d.ts +1 -1
- package/plugins/callTimer.d.ts +1 -1
- package/plugins/clearURLs/index.d.ts +1 -1
- package/plugins/consoleShortcuts.d.ts +4 -4
- package/plugins/crashHandler.d.ts +2 -2
- package/plugins/customRPC.d.ts +2 -2
- package/plugins/devCompanion.dev.d.ts +2 -2
- package/plugins/experiments.d.ts +2 -2
- package/plugins/fakeNitro.d.ts +2 -2
- package/plugins/fakeProfileThemes.d.ts +2 -2
- package/plugins/fart.d.ts +3 -3
- package/plugins/friendInvites.d.ts +3 -3
- package/plugins/fxTwitter.d.ts +1 -1
- package/plugins/imageZoom/index.d.ts +4 -4
- package/plugins/index.d.ts +2 -2
- package/plugins/invisibleChat/index.d.ts +2 -2
- package/plugins/lastfm.d.ts +2 -2
- package/plugins/messageClickActions.d.ts +1 -1
- package/plugins/messageLinkEmbeds.d.ts +2 -2
- package/plugins/messageLogger/index.d.ts +1 -1
- package/plugins/messageTags.d.ts +3 -3
- package/plugins/moreCommands.d.ts +5 -5
- package/plugins/moreKaomoji.d.ts +2 -2
- package/plugins/moreUserTags.d.ts +2 -2
- package/plugins/moyai.d.ts +2 -2
- package/plugins/noBlockedMessages.d.ts +1 -1
- package/plugins/noCanaryMessageLinks.d.ts +2 -2
- package/plugins/noReplyMention.d.ts +2 -2
- package/plugins/petpet.d.ts +1 -1
- package/plugins/pinDms/index.d.ts +2 -2
- package/plugins/pinDms/settings.d.ts +2 -2
- package/plugins/platformIndicators.d.ts +1 -1
- package/plugins/pronoundb/index.d.ts +1 -1
- package/plugins/quickReply.d.ts +2 -2
- package/plugins/relationshipNotifier/events.d.ts +1 -1
- package/plugins/relationshipNotifier/index.d.ts +7 -7
- package/plugins/relationshipNotifier/settings.d.ts +2 -2
- package/plugins/reviewDB/index.d.ts +1 -1
- package/plugins/roleColorEverywhere.d.ts +2 -2
- package/plugins/serverListIndicators.d.ts +1 -1
- package/plugins/settings.d.ts +1 -1
- package/plugins/shikiCodeblocks/index.d.ts +6 -6
- package/plugins/shikiCodeblocks/settings.d.ts +2 -2
- package/plugins/showHiddenChannels/index.d.ts +2 -2
- package/plugins/showMeYourName/index.d.ts +2 -2
- package/plugins/silentMessageToggle.d.ts +2 -2
- package/plugins/silentTyping.d.ts +4 -4
- package/plugins/sortFriendRequests.d.ts +1 -1
- package/plugins/spotifyControls/index.d.ts +1 -1
- package/plugins/spotifyCrack.d.ts +2 -2
- package/plugins/spotifyShareCommands.d.ts +2 -2
- package/plugins/typingIndicator.d.ts +2 -2
- package/plugins/typingTweaks.d.ts +2 -2
- package/plugins/unindent.d.ts +1 -1
- package/plugins/urbanDictionary.d.ts +3 -3
- package/plugins/userVoiceShow/index.d.ts +2 -2
- package/plugins/usrbg/index.d.ts +2 -2
- package/plugins/uwuify.d.ts +2 -2
- package/plugins/vcNarrator.d.ts +1 -1
- package/plugins/viewIcons.d.ts +2 -2
- package/plugins/volumeBooster.discordDesktop.d.ts +2 -2
- package/plugins/webContextMenus.web.d.ts +2 -2
- package/plugins/welcomeStickerPicker.d.ts +2 -2
- package/plugins/wikisearch.d.ts +2 -2
- package/utils/index.d.ts +4 -2
- package/utils/react.d.ts +1 -1
- package/utils/types.d.ts +1 -1
package/api/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import * as $MessagePopover from "./MessagePopover";
|
|
|
10
10
|
import * as $Notices from "./Notices";
|
|
11
11
|
import * as $Notifications from "./Notifications";
|
|
12
12
|
import * as $ServerList from "./ServerList";
|
|
13
|
+
import * as $Settings from "./settings";
|
|
13
14
|
import * as $SettingsStore from "./SettingsStore";
|
|
14
15
|
import * as $Styles from "./Styles";
|
|
15
16
|
/**
|
|
@@ -84,3 +85,7 @@ export declare const Notifications: typeof $Notifications;
|
|
|
84
85
|
* An api allowing you to patch and add/remove items to/from context menus
|
|
85
86
|
*/
|
|
86
87
|
export declare const ContextMenu: typeof $ContextMenu;
|
|
88
|
+
/**
|
|
89
|
+
* Settings lol
|
|
90
|
+
*/
|
|
91
|
+
export declare const Settings: typeof $Settings;
|
package/api/settings.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ModalProps } from "
|
|
3
|
-
import { Plugin } from "
|
|
2
|
+
import { ModalProps } from "../../utils/modal";
|
|
3
|
+
import { Plugin } from "../../utils/types";
|
|
4
4
|
interface PluginModalProps extends ModalProps {
|
|
5
5
|
plugin: Plugin;
|
|
6
6
|
onRestartNeeded(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { PluginOptionBoolean } from "
|
|
2
|
+
import { PluginOptionBoolean } from "../../../utils/types";
|
|
3
3
|
import { ISettingElementProps } from ".";
|
|
4
4
|
export declare function SettingBooleanComponent({ option, pluginSettings, definedSettings, id, onChange, onError }: ISettingElementProps<PluginOptionBoolean>): JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { PluginOptionComponent } from "
|
|
2
|
+
import { PluginOptionComponent } from "../../../utils/types";
|
|
3
3
|
import { ISettingElementProps } from ".";
|
|
4
4
|
export declare function SettingCustomComponent({ option, onChange, onError }: ISettingElementProps<PluginOptionComponent>): JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { PluginOptionNumber } from "
|
|
2
|
+
import { PluginOptionNumber } from "../../../utils/types";
|
|
3
3
|
import { ISettingElementProps } from ".";
|
|
4
4
|
export declare function SettingNumericComponent({ option, pluginSettings, definedSettings, id, onChange, onError }: ISettingElementProps<PluginOptionNumber>): JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { PluginOptionSelect } from "
|
|
2
|
+
import { PluginOptionSelect } from "../../../utils/types";
|
|
3
3
|
import { ISettingElementProps } from ".";
|
|
4
4
|
export declare function SettingSelectComponent({ option, pluginSettings, definedSettings, onChange, onError, id }: ISettingElementProps<PluginOptionSelect>): JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { PluginOptionSlider } from "
|
|
2
|
+
import { PluginOptionSlider } from "../../../utils/types";
|
|
3
3
|
import { ISettingElementProps } from ".";
|
|
4
4
|
export declare function makeRange(start: number, end: number, step?: number): number[];
|
|
5
5
|
export declare function SettingSliderComponent({ option, pluginSettings, definedSettings, id, onChange, onError }: ISettingElementProps<PluginOptionSlider>): JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { PluginOptionString } from "
|
|
2
|
+
import { PluginOptionString } from "../../../utils/types";
|
|
3
3
|
import { ISettingElementProps } from ".";
|
|
4
4
|
export declare function SettingTextComponent({ option, pluginSettings, definedSettings, id, onChange, onError }: ISettingElementProps<PluginOptionString>): JSX.Element;
|
package/globals.d.ts
CHANGED
|
@@ -16,57 +16,9 @@
|
|
|
16
16
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
import { LoDashStatic } from "lodash";
|
|
20
|
-
|
|
21
19
|
declare global {
|
|
22
|
-
/**
|
|
23
|
-
* This exists only at build time, so references to it in patches should insert it
|
|
24
|
-
* via String interpolation OR use different replacement code based on this
|
|
25
|
-
* but NEVER reference it inside the patched code
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* // BAD
|
|
29
|
-
* replace: "IS_WEB?foo:bar"
|
|
30
|
-
* // GOOD
|
|
31
|
-
* replace: IS_WEB ? "foo" : "bar"
|
|
32
|
-
* // also good
|
|
33
|
-
* replace: `${IS_WEB}?foo:bar`
|
|
34
|
-
*/
|
|
35
|
-
export var IS_WEB: boolean;
|
|
36
|
-
export var IS_DEV: boolean;
|
|
37
|
-
export var IS_STANDALONE: boolean;
|
|
38
|
-
export var IS_DISCORD_DESKTOP: boolean;
|
|
39
|
-
export var IS_VENCORD_DESKTOP: boolean;
|
|
40
|
-
|
|
41
20
|
export var VencordNative: typeof import("./VencordNative").default;
|
|
42
21
|
export var Vencord: typeof import("./Vencord");
|
|
43
|
-
export var VencordStyles: Map<string, {
|
|
44
|
-
name: string;
|
|
45
|
-
source: string;
|
|
46
|
-
classNames: Record<string, string>;
|
|
47
|
-
dom: HTMLStyleElement | null;
|
|
48
|
-
}>;
|
|
49
|
-
export var appSettings: {
|
|
50
|
-
set(setting: string, v: any): void;
|
|
51
|
-
};
|
|
52
|
-
/**
|
|
53
|
-
* Only available when running in Electron, undefined on web.
|
|
54
|
-
* Thus, avoid using this or only use it inside an {@link IS_WEB} guard.
|
|
55
|
-
*
|
|
56
|
-
* If you really must use it, mark your plugin as Desktop App only by naming it Foo.desktop.ts(x)
|
|
57
|
-
*/
|
|
58
|
-
export var DiscordNative: any;
|
|
59
|
-
export var VencordDesktop: any;
|
|
60
|
-
export var VencordDesktopNative: any;
|
|
61
|
-
|
|
62
|
-
interface Window {
|
|
63
|
-
webpackChunkdiscord_app: {
|
|
64
|
-
push(chunk: any): any;
|
|
65
|
-
pop(): any;
|
|
66
|
-
};
|
|
67
|
-
_: LoDashStatic;
|
|
68
|
-
[k: string]: any;
|
|
69
|
-
}
|
|
70
22
|
}
|
|
71
23
|
|
|
72
24
|
export { };
|
package/package.json
CHANGED
package/plugins/apiBadges.d.ts
CHANGED
package/plugins/banger.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import "./betterFolders.css";
|
|
3
|
-
import { OptionType } from "
|
|
3
|
+
import { OptionType } from "../../utils/types";
|
|
4
4
|
declare const _default: {
|
|
5
5
|
name: string;
|
|
6
6
|
description: string;
|
|
@@ -30,7 +30,7 @@ declare const _default: {
|
|
|
30
30
|
replace: string;
|
|
31
31
|
};
|
|
32
32
|
})[];
|
|
33
|
-
settings: import("
|
|
33
|
+
settings: import("../../utils/types").DefinedSettings<{
|
|
34
34
|
sidebar: {
|
|
35
35
|
type: OptionType.BOOLEAN;
|
|
36
36
|
description: string;
|
package/plugins/betterNotes.d.ts
CHANGED
package/plugins/blurNsfw.d.ts
CHANGED
package/plugins/callTimer.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { relaunch } from "
|
|
2
|
-
import { canonicalizeMatch, canonicalizeReplace, canonicalizeReplacement } from "
|
|
3
|
-
import * as Webpack from "
|
|
1
|
+
import { relaunch } from "../utils/native";
|
|
2
|
+
import { canonicalizeMatch, canonicalizeReplace, canonicalizeReplacement } from "../utils/patches";
|
|
3
|
+
import * as Webpack from "../webpack/webpack";
|
|
4
4
|
import type { ComponentType } from "react";
|
|
5
5
|
declare const _default: {
|
|
6
6
|
name: string;
|
|
@@ -30,7 +30,7 @@ declare const _default: {
|
|
|
30
30
|
findAllByCode: (code: string) => any[];
|
|
31
31
|
findStore: (...filterProps: unknown[]) => any;
|
|
32
32
|
PluginsApi: typeof import(".");
|
|
33
|
-
plugins: Record<string, import("
|
|
33
|
+
plugins: Record<string, import("../utils/types").Plugin>;
|
|
34
34
|
React: typeof import("react");
|
|
35
35
|
Settings: import("../Vencord").Settings;
|
|
36
36
|
Api: typeof import("../api");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OptionType } from "
|
|
1
|
+
import { OptionType } from "../utils/types";
|
|
2
2
|
import type { ReactElement } from "react";
|
|
3
3
|
declare const _default: {
|
|
4
4
|
name: string;
|
|
@@ -9,7 +9,7 @@ declare const _default: {
|
|
|
9
9
|
}[];
|
|
10
10
|
enabledByDefault: true;
|
|
11
11
|
popAllModals: (() => void) | undefined;
|
|
12
|
-
settings: import("
|
|
12
|
+
settings: import("../utils/types").DefinedSettings<{
|
|
13
13
|
attemptToPreventCrashes: {
|
|
14
14
|
type: OptionType.BOOLEAN;
|
|
15
15
|
description: string;
|
package/plugins/customRPC.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { OptionType } from "
|
|
2
|
+
import { OptionType } from "../utils/types";
|
|
3
3
|
declare function setRpc(disable?: boolean): Promise<void>;
|
|
4
4
|
declare const _default_1: {
|
|
5
5
|
name: string;
|
|
@@ -10,7 +10,7 @@ declare const _default_1: {
|
|
|
10
10
|
}[];
|
|
11
11
|
start: typeof setRpc;
|
|
12
12
|
stop: () => Promise<void>;
|
|
13
|
-
settings: import("
|
|
13
|
+
settings: import("../utils/types").DefinedSettings<{
|
|
14
14
|
appID: {
|
|
15
15
|
readonly type: OptionType.STRING;
|
|
16
16
|
readonly description: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OptionType } from "
|
|
1
|
+
import { OptionType } from "../utils/types";
|
|
2
2
|
declare const _default: {
|
|
3
3
|
name: string;
|
|
4
4
|
description: string;
|
|
@@ -6,7 +6,7 @@ declare const _default: {
|
|
|
6
6
|
name: string;
|
|
7
7
|
id: bigint;
|
|
8
8
|
}[];
|
|
9
|
-
settings: import("
|
|
9
|
+
settings: import("../utils/types").DefinedSettings<{
|
|
10
10
|
notifyOnAutoConnect: {
|
|
11
11
|
description: string;
|
|
12
12
|
type: OptionType.BOOLEAN;
|
package/plugins/experiments.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { OptionType } from "
|
|
2
|
+
import { OptionType } from "../utils/types";
|
|
3
3
|
declare const _default: {
|
|
4
4
|
name: string;
|
|
5
5
|
description: string;
|
|
@@ -7,7 +7,7 @@ declare const _default: {
|
|
|
7
7
|
name: string;
|
|
8
8
|
id: bigint;
|
|
9
9
|
}[];
|
|
10
|
-
settings: import("
|
|
10
|
+
settings: import("../utils/types").DefinedSettings<{
|
|
11
11
|
enableIsStaff: {
|
|
12
12
|
description: string;
|
|
13
13
|
type: OptionType.BOOLEAN;
|
package/plugins/fakeNitro.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OptionType } from "
|
|
1
|
+
import { OptionType } from "../utils/types";
|
|
2
2
|
import type { Message } from "discord-types/general";
|
|
3
3
|
import type { ReactNode } from "react";
|
|
4
4
|
declare const _default: {
|
|
@@ -9,7 +9,7 @@ declare const _default: {
|
|
|
9
9
|
}[];
|
|
10
10
|
description: string;
|
|
11
11
|
dependencies: string[];
|
|
12
|
-
settings: import("
|
|
12
|
+
settings: import("../utils/types").DefinedSettings<{
|
|
13
13
|
enableEmojiBypass: {
|
|
14
14
|
description: string;
|
|
15
15
|
type: OptionType.BOOLEAN;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { OptionType } from "
|
|
2
|
+
import { OptionType } from "../utils/types";
|
|
3
3
|
import { User } from "discord-types/general";
|
|
4
4
|
interface UserProfile extends User {
|
|
5
5
|
themeColors?: Array<number>;
|
|
@@ -23,7 +23,7 @@ declare const _default: {
|
|
|
23
23
|
};
|
|
24
24
|
}[];
|
|
25
25
|
settingsAboutComponent: () => JSX.Element;
|
|
26
|
-
settings: import("
|
|
26
|
+
settings: import("../utils/types").DefinedSettings<{
|
|
27
27
|
nitroFirst: {
|
|
28
28
|
description: string;
|
|
29
29
|
type: OptionType.SELECT;
|
package/plugins/fart.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApplicationCommandOptionType } from "
|
|
2
|
-
import { OptionType } from "
|
|
1
|
+
import { ApplicationCommandOptionType } from "../api/Commands";
|
|
2
|
+
import { OptionType } from "../utils/types";
|
|
3
3
|
declare const _default: {
|
|
4
4
|
name: string;
|
|
5
5
|
authors: {
|
|
@@ -17,7 +17,7 @@ declare const _default: {
|
|
|
17
17
|
description: string;
|
|
18
18
|
required: false;
|
|
19
19
|
}[];
|
|
20
|
-
execute(args: import("
|
|
20
|
+
execute(args: import("../api/Commands").Argument[]): {
|
|
21
21
|
content: string;
|
|
22
22
|
};
|
|
23
23
|
}[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApplicationCommandInputType } from "
|
|
1
|
+
import { ApplicationCommandInputType } from "../api/Commands";
|
|
2
2
|
declare const _default: {
|
|
3
3
|
name: string;
|
|
4
4
|
description: string;
|
|
@@ -11,12 +11,12 @@ declare const _default: {
|
|
|
11
11
|
name: string;
|
|
12
12
|
description: string;
|
|
13
13
|
inputType: ApplicationCommandInputType.BOT;
|
|
14
|
-
execute: (_: import("
|
|
14
|
+
execute: (_: import("../api/Commands").Argument[], ctx: import("../api/Commands").CommandContext) => Promise<import("discord-types/general").Message | undefined>;
|
|
15
15
|
} | {
|
|
16
16
|
name: string;
|
|
17
17
|
description: string;
|
|
18
18
|
inputType: ApplicationCommandInputType.BOT;
|
|
19
|
-
execute: (_: import("
|
|
19
|
+
execute: (_: import("../api/Commands").Argument[], ctx: import("../api/Commands").CommandContext) => Promise<void>;
|
|
20
20
|
})[];
|
|
21
21
|
} & Record<string, any>;
|
|
22
22
|
export default _default;
|
package/plugins/fxTwitter.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { OptionType } from "
|
|
3
|
-
import { React } from "
|
|
2
|
+
import { OptionType } from "../../utils/types";
|
|
3
|
+
import { React } from "../../webpack/common";
|
|
4
4
|
import type { Root } from "react-dom/client";
|
|
5
5
|
import { MagnifierProps } from "./components/Magnifier";
|
|
6
|
-
export declare const settings: import("
|
|
6
|
+
export declare const settings: import("../../utils/types").DefinedSettings<{
|
|
7
7
|
saveZoomValues: {
|
|
8
8
|
type: OptionType.BOOLEAN;
|
|
9
9
|
description: string;
|
|
@@ -61,7 +61,7 @@ declare const _default: {
|
|
|
61
61
|
replace: string;
|
|
62
62
|
}[];
|
|
63
63
|
})[];
|
|
64
|
-
settings: import("
|
|
64
|
+
settings: import("../../utils/types").DefinedSettings<{
|
|
65
65
|
saveZoomValues: {
|
|
66
66
|
type: OptionType.BOOLEAN;
|
|
67
67
|
description: string;
|
package/plugins/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Logger from "
|
|
2
|
-
import { Patch, Plugin } from "
|
|
1
|
+
import Logger from "../utils/Logger";
|
|
2
|
+
import { Patch, Plugin } from "../utils/types";
|
|
3
3
|
export declare const PMLogger: Logger;
|
|
4
4
|
export declare const plugins: Record<string, Plugin>;
|
|
5
5
|
export declare const patches: Patch[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { OptionType } from "
|
|
2
|
+
import { OptionType } from "../../utils/types";
|
|
3
3
|
import { Message } from "discord-types/general";
|
|
4
4
|
declare const _default: {
|
|
5
5
|
name: string;
|
|
@@ -19,7 +19,7 @@ declare const _default: {
|
|
|
19
19
|
EMBED_API_URL: string;
|
|
20
20
|
INV_REGEX: RegExp;
|
|
21
21
|
URL_REGEX: RegExp;
|
|
22
|
-
settings: import("
|
|
22
|
+
settings: import("../../utils/types").DefinedSettings<{
|
|
23
23
|
savedPasswords: {
|
|
24
24
|
type: OptionType.STRING;
|
|
25
25
|
default: string;
|
package/plugins/lastfm.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { OptionType } from "
|
|
2
|
+
import { OptionType } from "../utils/types";
|
|
3
3
|
interface ActivityAssets {
|
|
4
4
|
large_image?: string;
|
|
5
5
|
large_text?: string;
|
|
@@ -37,7 +37,7 @@ declare const _default: {
|
|
|
37
37
|
id: bigint;
|
|
38
38
|
}[];
|
|
39
39
|
settingsAboutComponent: () => JSX.Element;
|
|
40
|
-
settings: import("
|
|
40
|
+
settings: import("../utils/types").DefinedSettings<{
|
|
41
41
|
username: {
|
|
42
42
|
description: string;
|
|
43
43
|
type: OptionType.STRING;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { OptionType } from "
|
|
2
|
+
import { OptionType } from "../utils/types";
|
|
3
3
|
declare const _default: {
|
|
4
4
|
name: string;
|
|
5
5
|
description: string;
|
|
@@ -16,7 +16,7 @@ declare const _default: {
|
|
|
16
16
|
}[];
|
|
17
17
|
}[];
|
|
18
18
|
AutoModEmbed: any;
|
|
19
|
-
settings: import("
|
|
19
|
+
settings: import("../utils/types").DefinedSettings<{
|
|
20
20
|
messageBackgroundColor: {
|
|
21
21
|
description: string;
|
|
22
22
|
type: OptionType.BOOLEAN;
|
package/plugins/messageTags.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApplicationCommandInputType, ApplicationCommandOptionType } from "
|
|
2
|
-
import { OptionType } from "
|
|
1
|
+
import { ApplicationCommandInputType, ApplicationCommandOptionType } from "../api/Commands";
|
|
2
|
+
import { OptionType } from "../utils/types";
|
|
3
3
|
declare const _default: {
|
|
4
4
|
name: string;
|
|
5
5
|
description: string;
|
|
@@ -32,7 +32,7 @@ declare const _default: {
|
|
|
32
32
|
required: true;
|
|
33
33
|
}[];
|
|
34
34
|
}[];
|
|
35
|
-
execute(args: import("
|
|
35
|
+
execute(args: import("../api/Commands").Argument[], ctx: import("../api/Commands").CommandContext): Promise<import("discord-types/general").Message | undefined>;
|
|
36
36
|
}[];
|
|
37
37
|
} & Record<string, any>;
|
|
38
38
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApplicationCommandInputType } from "
|
|
1
|
+
import { ApplicationCommandInputType } from "../api/Commands";
|
|
2
2
|
declare const _default: {
|
|
3
3
|
name: string;
|
|
4
4
|
description: string;
|
|
@@ -10,14 +10,14 @@ declare const _default: {
|
|
|
10
10
|
commands: ({
|
|
11
11
|
name: string;
|
|
12
12
|
description: string;
|
|
13
|
-
options: import("
|
|
13
|
+
options: import("../api/Commands").Option[];
|
|
14
14
|
inputType: ApplicationCommandInputType.BOT;
|
|
15
|
-
execute: (opts: import("
|
|
15
|
+
execute: (opts: import("../api/Commands").Argument[], ctx: import("../api/Commands").CommandContext) => void;
|
|
16
16
|
} | {
|
|
17
17
|
name: string;
|
|
18
18
|
description: string;
|
|
19
|
-
options: import("
|
|
20
|
-
execute: (opts: import("
|
|
19
|
+
options: import("../api/Commands").Option[];
|
|
20
|
+
execute: (opts: import("../api/Commands").Argument[]) => {
|
|
21
21
|
content: string;
|
|
22
22
|
};
|
|
23
23
|
inputType?: undefined;
|
package/plugins/moreKaomoji.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ declare const _default: {
|
|
|
7
7
|
}[];
|
|
8
8
|
dependencies: string[];
|
|
9
9
|
commands: {
|
|
10
|
-
options: import("
|
|
11
|
-
execute: (opts: import("
|
|
10
|
+
options: import("../api/Commands").Option[];
|
|
11
|
+
execute: (opts: import("../api/Commands").Argument[]) => {
|
|
12
12
|
content: string;
|
|
13
13
|
};
|
|
14
14
|
name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OptionType } from "
|
|
1
|
+
import { OptionType } from "../utils/types";
|
|
2
2
|
import { Channel, Message, User } from "discord-types/general";
|
|
3
3
|
declare const _default: {
|
|
4
4
|
name: string;
|
|
@@ -7,7 +7,7 @@ declare const _default: {
|
|
|
7
7
|
name: string;
|
|
8
8
|
id: bigint;
|
|
9
9
|
}[];
|
|
10
|
-
settings: import("
|
|
10
|
+
settings: import("../utils/types").DefinedSettings<{
|
|
11
11
|
dontShowForBots: {
|
|
12
12
|
description: string;
|
|
13
13
|
type: OptionType.BOOLEAN;
|
package/plugins/moyai.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OptionType } from "
|
|
1
|
+
import { OptionType } from "../utils/types";
|
|
2
2
|
import { Message, ReactionEmoji } from "discord-types/general";
|
|
3
3
|
interface IMessageCreate {
|
|
4
4
|
type: "MESSAGE_CREATE";
|
|
@@ -30,7 +30,7 @@ declare const _default: {
|
|
|
30
30
|
id: bigint;
|
|
31
31
|
}[];
|
|
32
32
|
description: string;
|
|
33
|
-
settings: import("
|
|
33
|
+
settings: import("../utils/types").DefinedSettings<{
|
|
34
34
|
volume: {
|
|
35
35
|
description: string;
|
|
36
36
|
type: OptionType.SLIDER;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OptionType } from "
|
|
1
|
+
import { OptionType } from "../utils/types";
|
|
2
2
|
import type { Message } from "discord-types/general";
|
|
3
3
|
declare const _default: {
|
|
4
4
|
name: string;
|
|
@@ -7,7 +7,7 @@ declare const _default: {
|
|
|
7
7
|
name: string;
|
|
8
8
|
id: bigint;
|
|
9
9
|
}[];
|
|
10
|
-
settings: import("
|
|
10
|
+
settings: import("../utils/types").DefinedSettings<{
|
|
11
11
|
exemptList: {
|
|
12
12
|
description: string;
|
|
13
13
|
type: OptionType.STRING;
|
package/plugins/petpet.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApplicationCommandInputType, ApplicationCommandOptionType, Argument, CommandContext } from "
|
|
1
|
+
import { ApplicationCommandInputType, ApplicationCommandOptionType, Argument, CommandContext } from "../api/Commands";
|
|
2
2
|
declare const _default: {
|
|
3
3
|
name: string;
|
|
4
4
|
description: string;
|