decord/source/modules/user_profile/utils/getCurrentUserProfile.tsx
github-actions 20a21ad13f chore: update source for alpha 346.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
2026-09-11 19:12:58 +00:00

24 lines
740 B
TypeScript

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