mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-28 16:04:24 -04:00
feat(plugins): Remove ChatBar Button Properly
This commit is contained in:
parent
847a32765f
commit
4c9908c647
3 changed files with 8 additions and 11 deletions
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
import { addChatBarButton, ChatBarButton } from "@api/ChatButtons";
|
||||
import { addChatBarButton, ChatBarButton, removeChatBarButton } from "@api/ChatButtons";
|
||||
import { Devs } from "@utils/constants";
|
||||
import { getCurrentChannel, sendMessage } from "@utils/discord";
|
||||
import definePlugin from "@utils/types";
|
||||
|
@ -26,7 +26,6 @@ export default definePlugin({
|
|||
name: "Woof",
|
||||
description: "Adds a chatbar button to woof in chat",
|
||||
authors: [Devs.Samwich],
|
||||
start() {
|
||||
addChatBarButton("vc-woof", ChatBarIcon);
|
||||
}
|
||||
start: () => addChatBarButton("Woof", ChatBarIcon),
|
||||
stop: () => removeChatBarButton("Woof")
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue