sentFromMyUname/index.ts
2024-12-28 10:16:54 -05:00

16 lines
582 B
TypeScript

import { addPreSendListener } from "@api/MessageEvents";
import { Devs } from "@utils/constants";
import definePlugin, { PluginNative } from "@utils/types";
export const Native = VencordNative.pluginHelpers.SentFromMyUname as PluginNative<typeof import("./native")>;
export default definePlugin({
name: "SentFromMyUname",
description: "Add your uname to every single message you send",
authors: [Devs.nin0dev],
start() {
addPreSendListener(async (c, msg) => {
msg.content += `\n\nSent from my ${await Native.getUname()}`;
});
}
});