diff --git a/README.md b/README.md index 2592a11b..1be3622f 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,7 @@ Visit [1_INSTALLING.md](/docs/1_INSTALLING.md) - ValidReply (by [waresnew](https://github.com/waresnew)) (added from waresnew's [pull request](https://github.com/Vendicated/Vencord/pull/2337)) - ModViewBypass (by [Sqaaakoi](https://github.com/Sqaaakoi)) (added from Sqaaakoi's [pull request](https://github.com/Vendicated/Vencord/pull/2220)) - HideChatButtons (by [programminglaboratorys](https://github.com/programminglaboratorys/Vencord/blob/fun/src/plugins/hideChatButtons)) +- AmITyping (by [MrDiamondDog](https://github.com/MrDiamondDog)) (added from MrDiamondDog's [pull request](https://github.com/Vendicated/Vencord/pull/2360)) ## Disclaimer diff --git a/src/suncordplugins/amITyping/README.md b/src/suncordplugins/amITyping/README.md new file mode 100644 index 00000000..3f157dbe --- /dev/null +++ b/src/suncordplugins/amITyping/README.md @@ -0,0 +1,3 @@ +# AmITyping + +Simply shows if you are typing. This is almost exactly what it will look like for other users, so it may show after you have finished typing. diff --git a/src/suncordplugins/amITyping/index.ts b/src/suncordplugins/amITyping/index.ts new file mode 100644 index 00000000..6e6cc3c9 --- /dev/null +++ b/src/suncordplugins/amITyping/index.ts @@ -0,0 +1,24 @@ +/* + * Vencord, a Discord client mod + * Copyright (c) 2024 Vendicated and contributors + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +import { Devs } from "@utils/constants"; +import definePlugin from "@utils/types"; + +export default definePlugin({ + name: "AmITyping", + description: "Shows you if other people can see you typing.", + authors: [Devs.MrDiamond], + + patches: [ + { + find: "\"handleDismissInviteEducation\"", + replacement: { + match: /\i\.default\.getCurrentUser\(\)/, + replace: "\"\"" + } + } + ] +}); diff --git a/src/suncordplugins/hideChatButtons/index.tsx b/src/suncordplugins/hideChatButtons/index.tsx index 51cd70f1..419d2b26 100644 --- a/src/suncordplugins/hideChatButtons/index.tsx +++ b/src/suncordplugins/hideChatButtons/index.tsx @@ -7,8 +7,8 @@ import { ChatBarButton } from "@api/ChatButtons"; import { definePluginSettings } from "@api/Settings"; import { Devs } from "@utils/constants"; -import definePlugin, { OptionType,StartAt } from "@utils/types"; -import { useMemo,useState } from "@webpack/common"; +import definePlugin, { OptionType, StartAt } from "@utils/types"; +import { useMemo, useState } from "@webpack/common"; import { MouseEventHandler, ReactNode } from "react"; let hidechatbuttonsopen: boolean | undefined; @@ -80,7 +80,7 @@ function buttonsInner(buttons: ReactNode[]) { export default definePlugin({ - name: "hideChatButtons", + name: "HideChatButtons", description: "able to hide the chat buttons", settings: settings, authors: [Devs.iamme], diff --git a/src/utils/constants.ts b/src/utils/constants.ts index e802a1d7..607fa50d 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -502,6 +502,10 @@ export const Devs = /* #__PURE__*/ Object.freeze({ name: "i am me", id: 984392761929256980n, }, + MrDiamond: { + name: "mrdiamonddog", + id: 523338295644782592n, + }, } satisfies Record); export const SuncordDevs = /* #__PURE__*/ Object.freeze({