mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-28 16:04:24 -04:00
Fixes
This commit is contained in:
parent
acf04bb01d
commit
90d946e7c6
26 changed files with 84 additions and 84 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { addButton, removeButton } from "@api/MessagePopover";
|
||||
import { addMessagePopoverButton, removeMessagePopoverButton } from "@api/MessagePopover";
|
||||
import { disableStyle, enableStyle } from "@api/Styles";
|
||||
import { Devs } from "@utils/constants";
|
||||
import definePlugin, { OptionType } from "@utils/types";
|
||||
|
@ -72,7 +72,7 @@ export default definePlugin({
|
|||
authors: [Devs.newwares],
|
||||
start() {
|
||||
enableStyle(styles);
|
||||
addButton("vc-findreply", message => {
|
||||
addMessagePopoverButton("vc-findreply", message => {
|
||||
if (!message.id) return null;
|
||||
const replies = findReplies(message);
|
||||
if (Vencord.Settings.plugins.FindReply.hideButtonIfNoReply && !replies.length) return null;
|
||||
|
@ -117,7 +117,7 @@ export default definePlugin({
|
|||
});
|
||||
},
|
||||
stop() {
|
||||
removeButton("vc-findreply");
|
||||
removeMessagePopoverButton("vc-findreply");
|
||||
root && root.unmount();
|
||||
element?.remove();
|
||||
disableStyle(styles);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue