massive improvement #1

Merged
nin0 merged 1 commit from duke/sentFromMyUname:main into main 2024-12-29 11:58:39 -05:00
Showing only changes of commit 1231b1b5a4 - Show all commits

View file

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