aboutsummaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/api')
-rw-r--r--src/api/Commands/commandHelpers.ts5
-rw-r--r--src/api/Commands/index.ts4
-rw-r--r--src/api/MessageEvents.ts3
-rw-r--r--src/api/index.ts6
-rw-r--r--src/api/settings.ts3
5 files changed, 12 insertions, 9 deletions
diff --git a/src/api/Commands/commandHelpers.ts b/src/api/Commands/commandHelpers.ts
index d8b27df..90b89ed 100644
--- a/src/api/Commands/commandHelpers.ts
+++ b/src/api/Commands/commandHelpers.ts
@@ -16,10 +16,11 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import { filters, waitFor } from "../../webpack";
-import type { PartialDeep } from "type-fest";
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"'));
diff --git a/src/api/Commands/index.ts b/src/api/Commands/index.ts
index 8384b4a..c7034ab 100644
--- a/src/api/Commands/index.ts
+++ b/src/api/Commands/index.ts
@@ -18,10 +18,10 @@
import { makeCodeblock } from "../../utils/misc";
import { generateId, sendBotMessage } from "./commandHelpers";
-import { ApplicationCommandInputType, ApplicationCommandType, Argument, Command, CommandContext, Option, CommandReturnValue } from "./types";
+import { ApplicationCommandInputType, ApplicationCommandType, Argument, Command, CommandContext, CommandReturnValue,Option } from "./types";
-export * from "./types";
export * from "./commandHelpers";
+export * from "./types";
export let BUILT_IN: Command[];
export const commands = {} as Record<string, Command>;
diff --git a/src/api/MessageEvents.ts b/src/api/MessageEvents.ts
index 25e302b..90e8c73 100644
--- a/src/api/MessageEvents.ts
+++ b/src/api/MessageEvents.ts
@@ -16,7 +16,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import type { Message, Channel } from "discord-types/general";
+import type { Channel,Message } from "discord-types/general";
+
import Logger from "../utils/logger";
const MessageEventsLogger = new Logger("MessageEvents", "#e5c890");
diff --git a/src/api/index.ts b/src/api/index.ts
index 37f0620..73dafc9 100644
--- a/src/api/index.ts
+++ b/src/api/index.ts
@@ -16,11 +16,11 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import * as $MessageEventsAPI from "./MessageEvents";
-import * as $Notices from "./Notices";
import * as $Commands from "./Commands";
import * as $DataStore from "./DataStore";
import * as $MessageAccessories from "./MessageAccessories";
+import * as $MessageEventsAPI from "./MessageEvents";
+import * as $Notices from "./Notices";
/**
* An API allowing you to listen to Message Clicks or run your own logic
@@ -58,4 +58,4 @@ const DataStore = $DataStore;
*/
const MessageAccessories = $MessageAccessories;
-export { DataStore, MessageAccessories, MessageEvents, Notices, Commands };
+export { Commands,DataStore, MessageAccessories, MessageEvents, Notices };
diff --git a/src/api/settings.ts b/src/api/settings.ts
index f80f96b..0fdbe13 100644
--- a/src/api/settings.ts
+++ b/src/api/settings.ts
@@ -17,10 +17,11 @@
*/
import plugins from "plugins";
+
import IpcEvents from "../utils/IpcEvents";
-import { React } from "../webpack/common";
import { mergeDefaults } from "../utils/misc";
import { OptionType } from "../utils/types";
+import { React } from "../webpack/common";
export interface Settings {
notifyAboutUpdates: boolean;