forked from userplugins/sentFromMyUname
Merge pull request 'massive improvement' (#1) from duke/sentFromMyUname:main into main
Reviewed-on: userplugins/sentFromMyUname#1
This commit is contained in:
commit
6cb6fe9d5d
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")>;
|
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"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue