2022-10-21 23:17:06 +00: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/>.
|
|
|
|
*/
|
|
|
|
|
2022-11-11 22:50:09 +00:00
|
|
|
import * as $Badges from "./Badges";
|
2022-10-20 17:41:59 +00:00
|
|
|
import * as $Commands from "./Commands";
|
2023-03-08 04:59:50 +00:00
|
|
|
import * as $ContextMenu from "./ContextMenu";
|
2022-10-20 17:41:59 +00:00
|
|
|
import * as $DataStore from "./DataStore";
|
2022-12-21 19:16:32 +00:00
|
|
|
import * as $MemberListDecorators from "./MemberListDecorators";
|
2022-10-21 22:17:18 +00:00
|
|
|
import * as $MessageAccessories from "./MessageAccessories";
|
2022-12-21 19:16:32 +00:00
|
|
|
import * as $MessageDecorations from "./MessageDecorations";
|
2022-10-22 16:18:41 +00:00
|
|
|
import * as $MessageEventsAPI from "./MessageEvents";
|
2022-12-02 15:38:52 +00:00
|
|
|
import * as $MessagePopover from "./MessagePopover";
|
2022-10-22 16:18:41 +00:00
|
|
|
import * as $Notices from "./Notices";
|
2023-02-10 21:33:34 +00:00
|
|
|
import * as $Notifications from "./Notifications";
|
2022-11-19 13:54:48 +00:00
|
|
|
import * as $ServerList from "./ServerList";
|
2023-05-11 23:40:43 +00:00
|
|
|
import * as $Settings from "./Settings";
|
2023-04-03 00:13:44 +00:00
|
|
|
import * as $SettingsStore from "./SettingsStore";
|
2022-12-25 19:47:35 +00:00
|
|
|
import * as $Styles from "./Styles";
|
2022-10-20 17:41:59 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* An API allowing you to listen to Message Clicks or run your own logic
|
|
|
|
* before a message is sent
|
|
|
|
*
|
|
|
|
* If your plugin uses this, you must add MessageEventsAPI to its dependencies
|
|
|
|
*/
|
2022-12-25 19:47:35 +00:00
|
|
|
export const MessageEvents = $MessageEventsAPI;
|
2022-10-20 17:41:59 +00:00
|
|
|
/**
|
|
|
|
* An API allowing you to create custom notices
|
|
|
|
* (snackbars on the top, like the Update prompt)
|
|
|
|
*/
|
2022-12-25 19:47:35 +00:00
|
|
|
export const Notices = $Notices;
|
2022-10-20 17:41:59 +00:00
|
|
|
/**
|
|
|
|
* An API allowing you to register custom commands
|
|
|
|
*/
|
2022-12-25 19:47:35 +00:00
|
|
|
export const Commands = $Commands;
|
2022-10-20 17:41:59 +00:00
|
|
|
/**
|
|
|
|
* A wrapper around IndexedDB. This can store arbitrarily
|
|
|
|
* large data and supports a lot of datatypes (Blob, Map, ...).
|
|
|
|
* For a full list, see the mdn link below
|
|
|
|
*
|
|
|
|
* This should always be preferred over the Settings API if possible, as
|
|
|
|
* localstorage has very strict size restrictions and blocks the event loop
|
|
|
|
*
|
|
|
|
* 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 22:17:18 +00:00
|
|
|
*/
|
2022-12-25 19:47:35 +00:00
|
|
|
export const DataStore = $DataStore;
|
2022-10-21 22:17:18 +00:00
|
|
|
/**
|
|
|
|
* An API allowing you to add custom components as message accessories
|
|
|
|
*/
|
2022-12-25 19:47:35 +00:00
|
|
|
export const MessageAccessories = $MessageAccessories;
|
2022-12-02 15:38:52 +00:00
|
|
|
/**
|
|
|
|
* An API allowing you to add custom buttons in the message popover
|
|
|
|
*/
|
2022-12-25 19:47:35 +00:00
|
|
|
export const MessagePopover = $MessagePopover;
|
2022-11-11 22:50:09 +00:00
|
|
|
/**
|
|
|
|
* An API allowing you to add badges to user profiles
|
|
|
|
*/
|
2022-12-25 19:47:35 +00:00
|
|
|
export const Badges = $Badges;
|
2022-11-19 13:54:48 +00:00
|
|
|
/**
|
|
|
|
* An API allowing you to add custom elements to the server list
|
|
|
|
*/
|
2022-12-25 19:47:35 +00:00
|
|
|
export const ServerList = $ServerList;
|
2022-12-21 19:16:32 +00:00
|
|
|
/**
|
|
|
|
* An API allowing you to add components as message accessories
|
|
|
|
*/
|
2022-12-25 19:47:35 +00:00
|
|
|
export const MessageDecorations = $MessageDecorations;
|
2022-12-21 19:16:32 +00:00
|
|
|
/**
|
|
|
|
* An API allowing you to add components to member list users, in both DM's and servers
|
|
|
|
*/
|
2022-12-25 19:47:35 +00:00
|
|
|
export const MemberListDecorators = $MemberListDecorators;
|
2023-05-11 23:40:43 +00:00
|
|
|
/**
|
|
|
|
* An API allowing you to persist data
|
|
|
|
*/
|
|
|
|
export const Settings = $Settings;
|
2023-04-03 00:13:44 +00:00
|
|
|
/**
|
|
|
|
* An API allowing you to read, manipulate and automatically update components based on Discord settings
|
|
|
|
*/
|
|
|
|
export const SettingsStore = $SettingsStore;
|
2022-12-25 19:47:35 +00:00
|
|
|
/**
|
|
|
|
* An API allowing you to dynamically load styles
|
|
|
|
* a
|
|
|
|
*/
|
|
|
|
export const Styles = $Styles;
|
2023-02-10 21:33:34 +00:00
|
|
|
/**
|
|
|
|
* An API allowing you to display notifications
|
|
|
|
*/
|
|
|
|
export const Notifications = $Notifications;
|
2023-03-08 04:59:50 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* An api allowing you to patch and add/remove items to/from context menus
|
|
|
|
*/
|
|
|
|
export const ContextMenu = $ContextMenu;
|