aboutsummaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/api')
-rw-r--r--src/api/Commands/commandHelpers.ts8
-rw-r--r--src/api/Commands/index.ts3
-rw-r--r--src/api/MessageEvents.ts5
-rw-r--r--src/api/Notices.ts2
-rw-r--r--src/api/ServerList.ts2
-rw-r--r--src/api/settings.ts12
6 files changed, 16 insertions, 16 deletions
diff --git a/src/api/Commands/commandHelpers.ts b/src/api/Commands/commandHelpers.ts
index 8986248..d363d6e 100644
--- a/src/api/Commands/commandHelpers.ts
+++ b/src/api/Commands/commandHelpers.ts
@@ -16,15 +16,15 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
+import { mergeDefaults } from "@utils/misc";
+import { findByCodeLazy, findByPropsLazy, waitFor } from "@webpack";
import { Message } from "discord-types/general";
import type { PartialDeep } from "type-fest";
-import { lazyWebpack, mergeDefaults } from "../../utils/misc";
-import { filters, waitFor } from "../../webpack";
import { Argument } from "./types";
-const createBotMessage = lazyWebpack(filters.byCode('username:"Clyde"'));
-const MessageSender = lazyWebpack(filters.byProps("receiveMessage"));
+const createBotMessage = findByCodeLazy('username:"Clyde"');
+const MessageSender = findByPropsLazy("receiveMessage");
let SnowflakeUtils: any;
waitFor("fromTimestamp", m => SnowflakeUtils = m);
diff --git a/src/api/Commands/index.ts b/src/api/Commands/index.ts
index f31043c..88139d4 100644
--- a/src/api/Commands/index.ts
+++ b/src/api/Commands/index.ts
@@ -16,7 +16,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import { makeCodeblock } from "../../utils/misc";
+import { makeCodeblock } from "@utils/misc";
+
import { sendBotMessage } from "./commandHelpers";
import { ApplicationCommandInputType, ApplicationCommandOptionType, ApplicationCommandType, Argument, Command, CommandContext, Option } from "./types";
diff --git a/src/api/MessageEvents.ts b/src/api/MessageEvents.ts
index 02638b2..1bf6b0b 100644
--- a/src/api/MessageEvents.ts
+++ b/src/api/MessageEvents.ts
@@ -16,11 +16,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
+import Logger from "@utils/Logger";
+import { MessageStore } from "@webpack/common";
import type { Channel, Message } from "discord-types/general";
-import Logger from "../utils/Logger";
-import { MessageStore } from "../webpack/common";
-
const MessageEventsLogger = new Logger("MessageEvents", "#e5c890");
export interface Emoji {
diff --git a/src/api/Notices.ts b/src/api/Notices.ts
index 4364ca5..6d20087 100644
--- a/src/api/Notices.ts
+++ b/src/api/Notices.ts
@@ -16,7 +16,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import { waitFor } from "../webpack";
+import { waitFor } from "@webpack";
let NoticesModule: any;
waitFor(m => m.show && m.dismiss && !m.suppressAll, m => NoticesModule = m);
diff --git a/src/api/ServerList.ts b/src/api/ServerList.ts
index d3a9a11..c98b174 100644
--- a/src/api/ServerList.ts
+++ b/src/api/ServerList.ts
@@ -16,7 +16,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import Logger from "../utils/Logger";
+import Logger from "@utils/Logger";
const logger = new Logger("ServerListAPI");
diff --git a/src/api/settings.ts b/src/api/settings.ts
index dd8692a..b7499d1 100644
--- a/src/api/settings.ts
+++ b/src/api/settings.ts
@@ -16,13 +16,13 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import plugins from "~plugins";
+import IpcEvents from "@utils/IpcEvents";
+import Logger from "@utils/Logger";
+import { mergeDefaults } from "@utils/misc";
+import { OptionType } from "@utils/types";
+import { React } from "@webpack/common";
-import IpcEvents from "../utils/IpcEvents";
-import Logger from "../utils/Logger";
-import { mergeDefaults } from "../utils/misc";
-import { OptionType } from "../utils/types";
-import { React } from "../webpack/common";
+import plugins from "~plugins";
const logger = new Logger("Settings");
export interface Settings {