From 8cc6a73e19198f9f776ab017c17ef6b234ea8ac6 Mon Sep 17 00:00:00 2001 From: port Date: Tue, 11 Feb 2025 20:09:52 +0000 Subject: [PATCH] include pronouns with the random identity generation (#147) --- src/equicordplugins/identity/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/equicordplugins/identity/index.tsx b/src/equicordplugins/identity/index.tsx index b39e1683..9f1c2853 100644 --- a/src/equicordplugins/identity/index.tsx +++ b/src/equicordplugins/identity/index.tsx @@ -6,7 +6,7 @@ import { DataStore } from "@api/index"; import { Flex } from "@components/Flex"; -import { Devs } from "@utils/constants"; +import { Devs, EquicordDevs } from "@utils/constants"; import definePlugin, { PluginNative } from "@utils/types"; import { findByCodeLazy } from "@webpack"; import { Alerts, Button, FluxDispatcher, Forms, Toasts, UserProfileStore, UserStore } from "@webpack/common"; @@ -23,7 +23,7 @@ async function SetNewData() { // holy moly FluxDispatcher.dispatch({ type: "USER_SETTINGS_ACCOUNT_SET_PENDING_AVATAR", avatar: pfpBase64 }); FluxDispatcher.dispatch({ type: "USER_SETTINGS_ACCOUNT_SET_PENDING_GLOBAL_NAME", globalName: `${PersonData.name.first} ${PersonData.name.last}` }); - FluxDispatcher.dispatch({ type: "USER_SETTINGS_ACCOUNT_SET_PENDING_PRONOUNS", pronouns: "" }); + FluxDispatcher.dispatch({ type: "USER_SETTINGS_ACCOUNT_SET_PENDING_PRONOUNS", pronouns: `${PersonData.gender === "male" ? "he/him" : PersonData.gender === "female" ? "she/her" : ""}` }); FluxDispatcher.dispatch({ type: "USER_SETTINGS_ACCOUNT_SET_PENDING_BANNER", banner: null }); FluxDispatcher.dispatch({ type: "USER_SETTINGS_ACCOUNT_SET_PENDING_ACCENT_COLOR", color: null }); FluxDispatcher.dispatch({ type: "USER_SETTINGS_ACCOUNT_SET_PENDING_THEME_COLORS", themeColors: [null, null] }); @@ -134,7 +134,7 @@ function ResetCard() { export default definePlugin({ name: "Identity", description: "Allows you to edit your profile to a random fake person with the click of a button", - authors: [Devs.Samwich], + authors: [Devs.Samwich, EquicordDevs.port22exposed], ResetCard: ResetCard, patches: [ {