mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-25 22:37:02 -04:00
update(username): + updating plugin to latest (#289)
* Changes to my plugins + username change + Username change from kvba to meowabyte + Updated my plugins to most recent version (from my repo) * Did a little oopsie on remixMe + Replaced remixMe's imports and methods with actual working ones
This commit is contained in:
parent
7e2b8c1904
commit
a72ef38696
5 changed files with 214 additions and 201 deletions
|
@ -121,7 +121,7 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch
|
|||
- Moyai by Megu & Nuckyz
|
||||
- NeverPausePreviews by vappstar
|
||||
- NewPluginsManager by Sqaaakoi
|
||||
- NoAppsAllowed by kvba
|
||||
- NoAppsAllowed by meowabyte
|
||||
- NoBulletPoints by Samwich
|
||||
- NoDeleteSafety by Samwich
|
||||
- NoMirroredCamera by Nyx
|
||||
|
@ -141,7 +141,7 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch
|
|||
- Quoter by Samwich
|
||||
- RandomVoice by xijexo, omaw, thororen
|
||||
- Remix by MrDiamond
|
||||
- RemixMe by kvba
|
||||
- RemixMe by meowabyte
|
||||
- RepeatMessage by Tolgchu
|
||||
- ReplyPingControl by ant0n & MrDiamond
|
||||
- RPCEditor by Nyako & nin0dev
|
||||
|
|
|
@ -10,7 +10,7 @@ import definePlugin from "@utils/types";
|
|||
export default definePlugin({
|
||||
name: "NoAppsAllowed",
|
||||
description: "returns the bot's tag :skulk:",
|
||||
authors: [EquicordDevs.kvba],
|
||||
authors: [EquicordDevs.meowabyte],
|
||||
|
||||
patches: [
|
||||
{
|
||||
|
|
|
@ -4,16 +4,20 @@
|
|||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
import { addMessagePreSendListener, MessageExtra, MessageObject, removeMessagePreSendListener } from "@api/MessageEvents";
|
||||
import { addMessagePreSendListener, type MessageExtra, type MessageObject, type MessageSendListener, removeMessagePreSendListener } from "@api/MessageEvents";
|
||||
import { EquicordDevs } from "@utils/constants";
|
||||
import definePlugin from "@utils/types";
|
||||
|
||||
const handleMessage = (channelID: string, message: MessageObject, messageEx: MessageExtra) => messageEx.uploads && messageEx.uploads.forEach(att => (att as any).isRemix = true);
|
||||
import type { UploadWithRemix } from "./types";
|
||||
|
||||
|
||||
const handleMessage: MessageSendListener = (_: string, __: MessageObject, ex: MessageExtra) =>
|
||||
ex.uploads && (ex.uploads as UploadWithRemix[]).forEach(att => att.isRemix = true);
|
||||
|
||||
export default definePlugin({
|
||||
name: "RemixMe",
|
||||
description: "Turns every single message with attachment to have remix tag",
|
||||
authors: [EquicordDevs.kvba],
|
||||
authors: [EquicordDevs.meowabyte],
|
||||
start: () => addMessagePreSendListener(handleMessage),
|
||||
stop: () => removeMessagePreSendListener(handleMessage)
|
||||
});
|
||||
|
|
9
src/equicordplugins/remixMe/types.ts
Normal file
9
src/equicordplugins/remixMe/types.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
/*
|
||||
* Vencord, a Discord client mod
|
||||
* Copyright (c) 2025 Vendicated and contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
import { Upload } from "@api/MessageEvents";
|
||||
|
||||
export type UploadWithRemix = Upload & { isRemix?: boolean; };
|
|
@ -745,8 +745,8 @@ export const EquicordDevs = Object.freeze({
|
|||
name: "DaBluLite",
|
||||
id: 582170007505731594n
|
||||
},
|
||||
kvba: {
|
||||
name: "kvba",
|
||||
meowabyte: {
|
||||
name: "meowabyte",
|
||||
id: 105170831130234880n
|
||||
},
|
||||
Fafa: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue