diff --git a/src/plugins/voiceMessages/index.tsx b/src/plugins/voiceMessages/index.tsx index 5528aa6f..6452f5ff 100644 --- a/src/plugins/voiceMessages/index.tsx +++ b/src/plugins/voiceMessages/index.tsx @@ -32,7 +32,7 @@ import definePlugin from "@utils/types"; import { chooseFile } from "@utils/web"; import { CloudUpload as TCloudUpload } from "@vencord/discord-types"; import { CloudUploadPlatform } from "@vencord/discord-types/enums"; -import { findCssClassesLazy, findLazy, findStoreLazy } from "@webpack"; +import { findLazy, findStoreLazy } from "@webpack"; import { Button, Constants, FluxDispatcher, Forms, lodash, Menu, MessageActions, PermissionsBits, PermissionStore, RestAPI, SelectedChannelStore, showToast, SnowflakeUtils, Toasts, useEffect, useState } from "@webpack/common"; import { ComponentType } from "react"; @@ -43,7 +43,6 @@ import { VoiceRecorderWeb } from "./WebRecorder"; const CloudUpload: typeof TCloudUpload = findLazy(m => m.prototype?.trackUploadFinished); const PendingReplyStore = findStoreLazy("PendingReplyStore"); -const OptionClasses = findCssClassesLazy("optionName", "optionIcon", "optionLabel"); export const cl = classNameFactory("vc-vmsg-"); export type VoiceRecorder = ComponentType<{ @@ -59,12 +58,12 @@ const ctxMenuPatch: NavContextMenuPatchCallback = (children, props) => { children.push( - -
Send Voice Message
- - } + iconLeft={Microphone} + leadingAccessory={{ + type: "icon", + icon: Microphone + }} + label="Send Voice Message" action={() => openModal(modalProps => )} /> ); diff --git a/src/webpack/webpack.ts b/src/webpack/webpack.ts index c025a72b..aa1e1022 100644 --- a/src/webpack/webpack.ts +++ b/src/webpack/webpack.ts @@ -598,6 +598,8 @@ export function findCssClasses(...classes: S[]): Record; }