aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/spotifyShareCommands.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/spotifyShareCommands.ts')
-rw-r--r--src/plugins/spotifyShareCommands.ts19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/plugins/spotifyShareCommands.ts b/src/plugins/spotifyShareCommands.ts
index e5b247b..ce29b75 100644
--- a/src/plugins/spotifyShareCommands.ts
+++ b/src/plugins/spotifyShareCommands.ts
@@ -16,13 +16,12 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import { ApplicationCommandInputType, sendBotMessage } from "../api/Commands";
-import { migratePluginSettings } from "../api/settings";
-import { Devs } from "../utils/constants";
-import { lazyWebpack } from "../utils/misc";
-import definePlugin from "../utils/types";
-import { filters } from "../webpack";
-import { FluxDispatcher } from "../webpack/common";
+import { ApplicationCommandInputType, sendBotMessage } from "@api/Commands";
+import { migratePluginSettings } from "@api/settings";
+import { Devs } from "@utils/constants";
+import definePlugin from "@utils/types";
+import { findByPropsLazy } from "@webpack";
+import { FluxDispatcher } from "@webpack/common";
interface Album {
id: string;
@@ -54,9 +53,9 @@ interface Track {
name: string;
}
-const Spotify = lazyWebpack(filters.byProps("getPlayerState"));
-const MessageCreator = lazyWebpack(filters.byProps("getSendMessageOptionsForReply", "sendMessage"));
-const PendingReplyStore = lazyWebpack(filters.byProps("getPendingReply"));
+const Spotify = findByPropsLazy("getPlayerState");
+const MessageCreator = findByPropsLazy("getSendMessageOptionsForReply", "sendMessage");
+const PendingReplyStore = findByPropsLazy("getPendingReply");
function sendMessage(channelId, message) {
message = {