massive improvement #1
1 changed files with 7 additions and 0 deletions
7
index.ts
7
index.ts
|
@ -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"
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue