This commit is contained in:
thororen1234 2025-03-25 00:26:40 -04:00
parent 9dc706c45f
commit 8baf35a380
No known key found for this signature in database
2 changed files with 17 additions and 0 deletions

View file

@ -5,6 +5,7 @@
*/
import { definePluginSettings } from "@api/Settings";
import { disableStyle, enableStyle } from "@api/Styles";
import ErrorBoundary from "@components/ErrorBoundary";
import { makeRange } from "@components/PluginSettings/components";
import { debounce } from "@shared/debounce";
@ -13,6 +14,8 @@ import definePlugin, { OptionType } from "@utils/types";
import { findByPropsLazy, findComponentByCodeLazy, findStoreLazy } from "@webpack";
import { ChannelStore, ContextMenuApi, GuildStore, Menu, NavigationRouter, PermissionStore, React, SelectedChannelStore, Toasts, UserStore } from "@webpack/common";
import style from "./styles.css";
const ChatVoiceIcon = findComponentByCodeLazy("22H12Zm2-5.26c0");
const Button = findComponentByCodeLazy(".NONE,disabled:", ".PANEL_BUTTON");
const VoiceStateStore = findStoreLazy("VoiceStateStore");
@ -148,6 +151,12 @@ export default definePlugin({
}
}
],
start() {
enableStyle(style);
},
stop() {
disableStyle(style);
},
settings,
randomVoice: ErrorBoundary.wrap(randomVoice, { noop: true }),
});

View file

@ -0,0 +1,8 @@
[class^="buttons__"] {
width: 150px;
margin-left: -15px;
}
[class^="micButtonParent"] {
width: 16px;
}