mirror of
https://github.com/Vendicated/Vencord.git
synced 2024-09-20 06:30:35 +00:00
refactor(serverProfilesToolbox): destructure guildId
This commit is contained in:
parent
7cdfb07ccc
commit
ade179994d
1 changed files with 3 additions and 3 deletions
|
@ -24,13 +24,13 @@ export default definePlugin({
|
|||
authors: [Devs.D3SOX],
|
||||
description: "Adds a copy/paste/reset button to the server profiles editor",
|
||||
|
||||
patchServerProfiles(args: { guildId: string }) {
|
||||
patchServerProfiles({ guildId }: { guildId: string }) {
|
||||
return <SummaryItem title="Server Profiles Toolbox" hideDivider={false} forcedDivider>
|
||||
<div style={{ display: "flex", gap: "5px" }}>
|
||||
<Button onClick={() => {
|
||||
const currentUser = UserStore.getCurrentUser();
|
||||
const profile = UserProfileStore.getGuildMemberProfile(currentUser.id, args.guildId);
|
||||
const nick = GuildMemberStore.getNick(args.guildId, currentUser.id);
|
||||
const profile = UserProfileStore.getGuildMemberProfile(currentUser.id, guildId);
|
||||
const nick = GuildMemberStore.getNick(guildId, currentUser.id);
|
||||
savedNick = nick ?? "";
|
||||
savedPronouns = profile.pronouns;
|
||||
}}>
|
||||
|
|
Loading…
Reference in a new issue