sentFromMyUname/index.ts

17 lines
582 B
TypeScript
Raw Normal View History

2024-12-28 10:15:35 -05:00
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()}`;
});
}
});