Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
feat(plugin): AmITyping
Browse files Browse the repository at this point in the history
  • Loading branch information
verticalsync committed Apr 18, 2024
1 parent be163bc commit 8c47abd
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions src/suncordplugins/amITyping/README.md
Original file line number Diff line number Diff line change
@@ -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.
24 changes: 24 additions & 0 deletions src/suncordplugins/amITyping/index.ts
Original file line number Diff line number Diff line change
@@ -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: "\"\""
}
}
]
});
6 changes: 3 additions & 3 deletions src/suncordplugins/hideChatButtons/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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],
Expand Down
4 changes: 4 additions & 0 deletions src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,10 @@ export const Devs = /* #__PURE__*/ Object.freeze({
name: "i am me",
id: 984392761929256980n,
},
MrDiamond: {
name: "mrdiamonddog",
id: 523338295644782592n,
},
} satisfies Record<string, Dev>);

export const SuncordDevs = /* #__PURE__*/ Object.freeze({
Expand Down

0 comments on commit 8c47abd

Please sign in to comment.