forked from userplugins/sentFromMyUname
17 lines
582 B
TypeScript
17 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()}`;
|
||
|
});
|
||
|
}
|
||
|
});
|