decord/source/modules/user_profile/utils/getCurrentUserProfile.tsx
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

24 lines
740 B
TypeScript

// Module ID: 11119
// Function ID: 11120
// Name: getCurrentUserProfile
// Dependencies: [1371, 7635, 2]
// Exports: default
// Module 11119 (getCurrentUserProfile)
import UserStore from "UserStore" /* 1371 */;
import UserProfileStore from "UserProfileStore" /* 7635 */;
const size = fn(2);
const result = size.fileFinishedImporting("modules/user_profile/utils/getCurrentUserProfile.tsx");
export default function getCurrentUserProfile(guildId) {
let id = UserStore.getCurrentUser();
if (null == id) {
return null;
} else if (null != guildId) {
id = id.id;
let guildMemberProfile = UserProfileStore.getGuildMemberProfile(id, guildId);
} else {
guildMemberProfile = UserProfileStore.getUserProfile(id.id);
}
};