Merge pull request 'massive improvement' (#1) from duke/sentFromMyUname:main into main

Reviewed-on: #1
This commit is contained in:
nin0dev 2024-12-29 11:58:37 -05:00
commit 6cb6fe9d5d

View file

@ -6,6 +6,10 @@ import definePlugin, { OptionType, PluginNative } from "@utils/types";
export const Native = VencordNative.pluginHelpers.SentFromMyUname as PluginNative<typeof import("./native")>; export const Native = VencordNative.pluginHelpers.SentFromMyUname as PluginNative<typeof import("./native")>;
async function getWhateverShouldBeSentFromMy() { async function getWhateverShouldBeSentFromMy() {
if (Settings.plugins.SentFromMyUname.signatureToUse === "iPhone") {
return "iPhone";
}
if ((IS_DISCORD_DESKTOP || IS_VESKTOP) && Settings.plugins.SentFromMyUname.signatureToUse === "uname") { if ((IS_DISCORD_DESKTOP || IS_VESKTOP) && Settings.plugins.SentFromMyUname.signatureToUse === "uname") {
try { try {
return await Native.getUname(); return await Native.getUname();
@ -31,6 +35,9 @@ export default definePlugin({
}, { }, {
label: "Always use useragent", label: "Always use useragent",
value: "useragent" value: "useragent"
}, {
label: "Sent from my iPhone",
value: "iPhone"
}], }],
default: "uname" default: "uname"
}, },