diff options
author | Vendicated <vendicated@riseup.net> | 2022-10-22 18:18:41 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-10-22 18:18:41 +0200 |
commit | 61fd38d6d9170a9583c62366a2d4afa40507ce01 (patch) | |
tree | 50132ae08fb39b453bca0dbeeae311e12b2528ed /src/api | |
parent | a7dbd73547104540218d4699fcf643fca727d2fc (diff) | |
download | Vencord-61fd38d6d9170a9583c62366a2d4afa40507ce01.tar.gz Vencord-61fd38d6d9170a9583c62366a2d4afa40507ce01.tar.bz2 Vencord-61fd38d6d9170a9583c62366a2d4afa40507ce01.zip |
style: Sort imports
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/Commands/commandHelpers.ts | 5 | ||||
-rw-r--r-- | src/api/Commands/index.ts | 4 | ||||
-rw-r--r-- | src/api/MessageEvents.ts | 3 | ||||
-rw-r--r-- | src/api/index.ts | 6 | ||||
-rw-r--r-- | src/api/settings.ts | 3 |
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; |