mirror of
https://github.com/Equicord/Equicord.git
synced 2025-02-23 16:49:24 -05:00
include pronouns with the random identity generation (#147)
This commit is contained in:
parent
c4c5077ccf
commit
8cc6a73e19
1 changed files with 3 additions and 3 deletions
|
@ -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: [
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue