Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
24 lines
740 B
TypeScript
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);
|
|
}
|
|
};
|