mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-28 07:54:22 -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
|
- Moyai by Megu & Nuckyz
|
||||||
- NeverPausePreviews by vappstar
|
- NeverPausePreviews by vappstar
|
||||||
- NewPluginsManager by Sqaaakoi
|
- NewPluginsManager by Sqaaakoi
|
||||||
- NoAppsAllowed by kvba
|
- NoAppsAllowed by meowabyte
|
||||||
- NoBulletPoints by Samwich
|
- NoBulletPoints by Samwich
|
||||||
- NoDeleteSafety by Samwich
|
- NoDeleteSafety by Samwich
|
||||||
- NoMirroredCamera by Nyx
|
- NoMirroredCamera by Nyx
|
||||||
|
@ -141,7 +141,7 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch
|
||||||
- Quoter by Samwich
|
- Quoter by Samwich
|
||||||
- RandomVoice by xijexo, omaw, thororen
|
- RandomVoice by xijexo, omaw, thororen
|
||||||
- Remix by MrDiamond
|
- Remix by MrDiamond
|
||||||
- RemixMe by kvba
|
- RemixMe by meowabyte
|
||||||
- RepeatMessage by Tolgchu
|
- RepeatMessage by Tolgchu
|
||||||
- ReplyPingControl by ant0n & MrDiamond
|
- ReplyPingControl by ant0n & MrDiamond
|
||||||
- RPCEditor by Nyako & nin0dev
|
- RPCEditor by Nyako & nin0dev
|
||||||
|
|
|
@ -10,7 +10,7 @@ import definePlugin from "@utils/types";
|
||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
name: "NoAppsAllowed",
|
name: "NoAppsAllowed",
|
||||||
description: "returns the bot's tag :skulk:",
|
description: "returns the bot's tag :skulk:",
|
||||||
authors: [EquicordDevs.kvba],
|
authors: [EquicordDevs.meowabyte],
|
||||||
|
|
||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,16 +4,20 @@
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* 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 { EquicordDevs } from "@utils/constants";
|
||||||
import definePlugin from "@utils/types";
|
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({
|
export default definePlugin({
|
||||||
name: "RemixMe",
|
name: "RemixMe",
|
||||||
description: "Turns every single message with attachment to have remix tag",
|
description: "Turns every single message with attachment to have remix tag",
|
||||||
authors: [EquicordDevs.kvba],
|
authors: [EquicordDevs.meowabyte],
|
||||||
start: () => addMessagePreSendListener(handleMessage),
|
start: () => addMessagePreSendListener(handleMessage),
|
||||||
stop: () => removeMessagePreSendListener(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",
|
name: "DaBluLite",
|
||||||
id: 582170007505731594n
|
id: 582170007505731594n
|
||||||
},
|
},
|
||||||
kvba: {
|
meowabyte: {
|
||||||
name: "kvba",
|
name: "meowabyte",
|
||||||
id: 105170831130234880n
|
id: 105170831130234880n
|
||||||
},
|
},
|
||||||
Fafa: {
|
Fafa: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue