2022-10-22 01:17:06 +02:00
|
|
|
/*
|
|
|
|
|
* Vencord, a modification for Discord's desktop app
|
|
|
|
|
* Copyright (c) 2022 Vendicated and contributors
|
|
|
|
|
*
|
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
|
2025-09-20 09:51:28 -07:00
|
|
|
import * as $AudioPlayer from "./AudioPlayer";
|
2022-11-11 22:50:09 +00:00
|
|
|
import * as $Badges from "./Badges";
|
2024-02-06 16:29:47 +01:00
|
|
|
import * as $ChatButtons from "./ChatButtons";
|
2022-10-20 19:41:59 +02:00
|
|
|
import * as $Commands from "./Commands";
|
2023-03-08 01:59:50 -03:00
|
|
|
import * as $ContextMenu from "./ContextMenu";
|
2022-10-20 19:41:59 +02:00
|
|
|
import * as $DataStore from "./DataStore";
|
2025-11-27 13:47:59 -08:00
|
|
|
import * as $HeaderBar from "./HeaderBar";
|
2022-12-21 21:16:32 +02:00
|
|
|
import * as $MemberListDecorators from "./MemberListDecorators";
|
2022-10-21 16:17:18 -06:00
|
|
|
import * as $MessageAccessories from "./MessageAccessories";
|
2022-12-21 21:16:32 +02:00
|
|
|
import * as $MessageDecorations from "./MessageDecorations";
|
2022-10-22 18:18:41 +02:00
|
|
|
import * as $MessageEventsAPI from "./MessageEvents";
|
2022-12-02 09:38:52 -06:00
|
|
|
import * as $MessagePopover from "./MessagePopover";
|
2024-05-29 04:57:18 -03:00
|
|
|
import * as $MessageUpdater from "./MessageUpdater";
|
2025-05-02 21:00:56 -04:00
|
|
|
import * as $NicknameIcons from "./NicknameIcons";
|
2022-10-22 18:18:41 +02:00
|
|
|
import * as $Notices from "./Notices";
|
2023-02-10 22:33:34 +01:00
|
|
|
import * as $Notifications from "./Notifications";
|
2025-12-14 19:30:56 +01:00
|
|
|
import * as $UserArea from "./UserArea";
|
2025-11-16 15:17:35 +01:00
|
|
|
export * as PluginManager from "./PluginManager";
|
2026-03-20 15:45:06 -04:00
|
|
|
import * as $ProfileCollections from "./ProfileCollections";
|
2022-11-19 15:54:48 +02:00
|
|
|
import * as $ServerList from "./ServerList";
|
2023-05-12 01:40:43 +02:00
|
|
|
import * as $Settings from "./Settings";
|
2022-12-25 20:47:35 +01:00
|
|
|
import * as $Styles from "./Styles";
|
2025-11-16 15:17:35 +01:00
|
|
|
import * as $Themes from "./Themes";
|
2024-06-19 23:49:42 -03:00
|
|
|
import * as $UserSettings from "./UserSettings";
|
2022-10-20 19:41:59 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* An API allowing you to listen to Message Clicks or run your own logic
|
2025-09-20 09:51:28 -07:00
|
|
|
* before a message is sent.
|
2022-10-20 19:41:59 +02:00
|
|
|
*
|
2025-09-20 09:51:28 -07:00
|
|
|
* If your plugin uses this, you must add MessageEventsAPI to its dependencies.
|
2022-10-20 19:41:59 +02:00
|
|
|
*/
|
2022-12-25 20:47:35 +01:00
|
|
|
export const MessageEvents = $MessageEventsAPI;
|
2025-09-20 09:51:28 -07:00
|
|
|
|
2022-10-20 19:41:59 +02:00
|
|
|
/**
|
|
|
|
|
* An API allowing you to create custom notices
|
2025-09-20 09:51:28 -07:00
|
|
|
* (snackbars on the top, like the Update prompt).
|
2022-10-20 19:41:59 +02:00
|
|
|
*/
|
2022-12-25 20:47:35 +01:00
|
|
|
export const Notices = $Notices;
|
2025-09-20 09:51:28 -07:00
|
|
|
|
2022-10-20 19:41:59 +02:00
|
|
|
/**
|
2025-09-20 09:51:28 -07:00
|
|
|
* An API allowing you to register custom commands.
|
2022-10-20 19:41:59 +02:00
|
|
|
*/
|
2022-12-25 20:47:35 +01:00
|
|
|
export const Commands = $Commands;
|
2025-09-20 09:51:28 -07:00
|
|
|
|
2022-10-20 19:41:59 +02:00
|
|
|
/**
|
|
|
|
|
* A wrapper around IndexedDB. This can store arbitrarily
|
|
|
|
|
* large data and supports a lot of datatypes (Blob, Map, ...).
|
2025-09-20 09:51:28 -07:00
|
|
|
* For a full list, see the mdn link below.
|
2022-10-20 19:41:59 +02:00
|
|
|
*
|
|
|
|
|
* This should always be preferred over the Settings API if possible, as
|
2025-09-20 09:51:28 -07:00
|
|
|
* localstorage has very strict size restrictions and blocks the event loop.
|
2022-10-20 19:41:59 +02:00
|
|
|
*
|
|
|
|
|
* Make sure your keys are unique (tip: prefix them with ur plugin name)
|
|
|
|
|
* and please clean up no longer needed entries.
|
|
|
|
|
*
|
|
|
|
|
* This is actually just idb-keyval, so if you're familiar with that, you're golden!
|
|
|
|
|
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm#supported_types}
|
2022-10-21 16:17:18 -06:00
|
|
|
*/
|
2022-12-25 20:47:35 +01:00
|
|
|
export const DataStore = $DataStore;
|
2025-09-20 09:51:28 -07:00
|
|
|
|
2022-10-21 16:17:18 -06:00
|
|
|
/**
|
2025-09-20 09:51:28 -07:00
|
|
|
* An API allowing you to add custom components as message accessories.
|
2022-10-21 16:17:18 -06:00
|
|
|
*/
|
2022-12-25 20:47:35 +01:00
|
|
|
export const MessageAccessories = $MessageAccessories;
|
2025-09-20 09:51:28 -07:00
|
|
|
|
2022-12-02 09:38:52 -06:00
|
|
|
/**
|
2025-09-20 09:51:28 -07:00
|
|
|
* An API allowing you to add custom buttons in the message popover.
|
2022-12-02 09:38:52 -06:00
|
|
|
*/
|
2022-12-25 20:47:35 +01:00
|
|
|
export const MessagePopover = $MessagePopover;
|
2025-09-20 09:51:28 -07:00
|
|
|
|
2022-11-11 22:50:09 +00:00
|
|
|
/**
|
2025-09-20 09:51:28 -07:00
|
|
|
* An API allowing you to add badges to user profiles.
|
2022-11-11 22:50:09 +00:00
|
|
|
*/
|
2022-12-25 20:47:35 +01:00
|
|
|
export const Badges = $Badges;
|
2025-09-20 09:51:28 -07:00
|
|
|
|
2022-11-19 15:54:48 +02:00
|
|
|
/**
|
2025-09-20 09:51:28 -07:00
|
|
|
* An API allowing you to add custom elements to the server list.
|
2022-11-19 15:54:48 +02:00
|
|
|
*/
|
2022-12-25 20:47:35 +01:00
|
|
|
export const ServerList = $ServerList;
|
2025-09-20 09:51:28 -07:00
|
|
|
|
2022-12-21 21:16:32 +02:00
|
|
|
/**
|
2025-09-20 09:51:28 -07:00
|
|
|
* An API allowing you to add components as message accessories.
|
2022-12-21 21:16:32 +02:00
|
|
|
*/
|
2022-12-25 20:47:35 +01:00
|
|
|
export const MessageDecorations = $MessageDecorations;
|
2025-09-20 09:51:28 -07:00
|
|
|
|
2022-12-21 21:16:32 +02:00
|
|
|
/**
|
2025-09-20 09:51:28 -07:00
|
|
|
* An API allowing you to add components to member list users, in both DM's and servers.
|
2022-12-21 21:16:32 +02:00
|
|
|
*/
|
2022-12-25 20:47:35 +01:00
|
|
|
export const MemberListDecorators = $MemberListDecorators;
|
2025-09-20 09:51:28 -07:00
|
|
|
|
2023-05-12 01:40:43 +02:00
|
|
|
/**
|
2025-09-20 09:51:28 -07:00
|
|
|
* An API allowing you to persist data.
|
2023-05-12 01:40:43 +02:00
|
|
|
*/
|
|
|
|
|
export const Settings = $Settings;
|
2025-09-20 09:51:28 -07:00
|
|
|
|
2022-12-25 20:47:35 +01:00
|
|
|
/**
|
2025-09-20 09:51:28 -07:00
|
|
|
* An API allowing you to dynamically load styles.
|
2022-12-25 20:47:35 +01:00
|
|
|
* a
|
|
|
|
|
*/
|
|
|
|
|
export const Styles = $Styles;
|
2025-09-20 09:51:28 -07:00
|
|
|
|
2023-02-10 22:33:34 +01:00
|
|
|
/**
|
2025-09-20 09:51:28 -07:00
|
|
|
* An API allowing you to display notifications.
|
2023-02-10 22:33:34 +01:00
|
|
|
*/
|
|
|
|
|
export const Notifications = $Notifications;
|
2023-03-08 01:59:50 -03:00
|
|
|
|
|
|
|
|
/**
|
2025-09-20 09:51:28 -07:00
|
|
|
* An api allowing you to patch and add/remove items to/from context menus.
|
2023-03-08 01:59:50 -03:00
|
|
|
*/
|
|
|
|
|
export const ContextMenu = $ContextMenu;
|
2024-02-06 16:29:47 +01:00
|
|
|
|
|
|
|
|
/**
|
2025-09-20 09:51:28 -07:00
|
|
|
* An API allowing you to add buttons to the chat input.
|
2024-02-06 16:29:47 +01:00
|
|
|
*/
|
|
|
|
|
export const ChatButtons = $ChatButtons;
|
2024-05-29 04:57:18 -03:00
|
|
|
|
2025-11-27 13:47:59 -08:00
|
|
|
/**
|
2025-12-10 14:35:29 +01:00
|
|
|
* An API allowing you to add buttons to the header bar or channel toolbar.
|
2025-11-27 13:47:59 -08:00
|
|
|
*/
|
|
|
|
|
export const HeaderBar = $HeaderBar;
|
|
|
|
|
|
2024-05-29 04:57:18 -03:00
|
|
|
/**
|
2025-09-20 09:51:28 -07:00
|
|
|
* An API allowing you to update and re-render messages.
|
2024-05-29 04:57:18 -03:00
|
|
|
*/
|
|
|
|
|
export const MessageUpdater = $MessageUpdater;
|
2024-06-19 03:04:15 +02:00
|
|
|
|
2024-06-19 23:49:42 -03:00
|
|
|
/**
|
2025-09-20 09:51:28 -07:00
|
|
|
* An API allowing you to get an user setting.
|
2024-06-19 23:49:42 -03:00
|
|
|
*/
|
|
|
|
|
export const UserSettings = $UserSettings;
|
2025-02-19 17:06:09 -05:00
|
|
|
|
2025-11-16 15:17:35 +01:00
|
|
|
/**
|
|
|
|
|
* Don't use this
|
|
|
|
|
*/
|
|
|
|
|
export const Themes = $Themes;
|
2025-11-18 23:48:00 -05:00
|
|
|
|
2025-05-02 21:00:56 -04:00
|
|
|
/**
|
2025-09-20 09:51:28 -07:00
|
|
|
* An API allowing you to add icons to the nickname, in profiles.
|
2025-05-02 21:00:56 -04:00
|
|
|
*/
|
|
|
|
|
export const NicknameIcons = $NicknameIcons;
|
|
|
|
|
|
2025-02-19 17:06:09 -05:00
|
|
|
/**
|
2025-09-20 09:51:28 -07:00
|
|
|
* An API allowing you to play internal Discord audio files or external audio URLs/URIs.
|
|
|
|
|
*/
|
|
|
|
|
export const AudioPlayer = $AudioPlayer;
|
|
|
|
|
|
2025-12-14 19:30:56 +01:00
|
|
|
/**
|
|
|
|
|
* An API allowing you to add buttons to the user area panel.
|
|
|
|
|
*/
|
|
|
|
|
export const UserArea = $UserArea;
|
|
|
|
|
|
2025-09-20 09:51:28 -07:00
|
|
|
/**
|
|
|
|
|
* Just used to identify if user is on Equicord as Vencord doesn't have this.
|
2025-02-19 17:06:09 -05:00
|
|
|
*/
|
|
|
|
|
export const isEquicord = true;
|
2026-03-20 15:45:06 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* An API allowing you to add other collections where discords game collection is.
|
|
|
|
|
*/
|
|
|
|
|
export const ProfileCollections = $ProfileCollections;
|