style: Sort imports

This commit is contained in:
Vendicated 2022-10-22 18:18:41 +02:00
parent a7dbd73547
commit 61fd38d6d9
No known key found for this signature in database
GPG key ID: EC781ADFB93EFFA3
57 changed files with 133 additions and 114 deletions

View file

@ -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"'));

View file

@ -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>;

View file

@ -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");

View file

@ -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 };

View file

@ -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;