decord/source/modules/user_profile/utils/getCurrentUserProfile.tsx
github-actions a36fe4ec9c chore: update source for alpha 347.0
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-14 20:04:03 +00:00

24 lines
740 B
TypeScript

// Module ID: 11222
// Function ID: 11223
// Name: getCurrentUserProfile
// Dependencies: [1371, 7723, 2]
// Exports: default
// Module 11222 (getCurrentUserProfile)
import UserStore from "UserStore" /* 1371 */;
import UserProfileStore from "UserProfileStore" /* 7723 */;
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);
}
};