diff --git a/src/plugins/userVoiceShow/README.md b/src/plugins/userVoiceShow/README.md deleted file mode 100644 index a0eb7c43..00000000 --- a/src/plugins/userVoiceShow/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# User Voice Show - -Shows an indicator when a user is in a Voice Channel - -![a preview of the indicator in the user profile](https://github.com/user-attachments/assets/48f825e4-fad5-40d7-bb4f-41d5e595aae0) - -![a preview of the indicator in the member list](https://github.com/user-attachments/assets/51be081d-7bbb-45c5-8533-d565228e50c1) diff --git a/src/plugins/userVoiceShow/components/VoiceChannelIndicator.css b/src/plugins/userVoiceShow/components/VoiceChannelIndicator.css deleted file mode 100644 index 902cebdc..00000000 --- a/src/plugins/userVoiceShow/components/VoiceChannelIndicator.css +++ /dev/null @@ -1,15 +0,0 @@ -.vc-uvs-indicator { - display: inline-flex; - justify-content: center; - align-items: center; - margin-left: 4px; - vertical-align: top; - position: relative; - top: 0; - padding: 0; - gap: 2px; -} - -.vc-uvs-indicator>svg { - fill: dodgerblue; -} diff --git a/src/plugins/userVoiceShow/components/VoiceChannelIndicator.tsx b/src/plugins/userVoiceShow/components/VoiceChannelIndicator.tsx deleted file mode 100644 index 339a174c..00000000 --- a/src/plugins/userVoiceShow/components/VoiceChannelIndicator.tsx +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Vencord, a modification for Discord's desktop app - * Copyright (c) 2023 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 . -*/ - -import "./VoiceChannelIndicator.css"; - -import { NavigationRouter, PermissionsBits, PermissionStore, Toasts, Tooltip } from "@webpack/common"; -import { Channel } from "discord-types/general"; - -import speakerSvg from "./speaker.svg"; - -interface VoiceChannelIndicatorProps { - tooltipText?: string; - channel: Channel; -} - -export const VoiceChannelIndicator = ({ tooltipText, channel }: VoiceChannelIndicatorProps) => ( - { - if (PermissionStore.can(PermissionsBits.VIEW_CHANNEL, channel)) { - NavigationRouter.transitionTo(getChannelPath(channel)); - e.preventDefault(); - e.stopPropagation(); - } - else - Toasts.show({ - message: "Insufficient permissions to view the channel.", - id: "user-voice-show-insufficient-permissions", - type: Toasts.Type.FAILURE, - options: { - position: Toasts.Position.BOTTOM, - } - }); - }}> - - {(tooltipProps: any) => speakerSvg(tooltipProps)} - - -); - -const getChannelPath = (c: Channel) => `/channels/${c.guild_id ?? "@me"}/${c.id}`; diff --git a/src/plugins/userVoiceShow/components/eye.svg.tsx b/src/plugins/userVoiceShow/components/eye.svg.tsx deleted file mode 100644 index 60ac581f..00000000 --- a/src/plugins/userVoiceShow/components/eye.svg.tsx +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Vencord, a Discord client mod - * Copyright (c) 2023 Vendicated and contributors - * SPDX-License-Identifier: GPL-3.0-or-later - */ - -export default () => ( - - - -); diff --git a/src/plugins/userVoiceShow/components/speaker.svg.tsx b/src/plugins/userVoiceShow/components/speaker.svg.tsx deleted file mode 100644 index c0b73384..00000000 --- a/src/plugins/userVoiceShow/components/speaker.svg.tsx +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Vencord, a Discord client mod - * Copyright (c) 2023 Vendicated and contributors - * SPDX-License-Identifier: GPL-3.0-or-later - */ - -export default (props: any) => ( - - - -);