decord/alpha/source/modules/applications/getApplicationFromBotUserId.tsx
github-actions 45f5884862 chore: update source for alpha 348.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5012.js (118.4 MB)
2026-09-23 06:49:31 +00:00

37 lines
1.1 KiB
TypeScript

// Module ID: 12939
// Function ID: 12940
// Name: getApplicationFromBotUserId
// Dependencies: [7943, 1074, 504, 2]
// Exports: default
// Module 12939 (getApplicationFromBotUserId)
import UserProfileStore from "UserProfileStore" /* 7943 */;
const require = globalThis.__r;
const require = fn;
const EMPTY_STRING_SNOWFLAKE_ID = fn(1074).EMPTY_STRING_SNOWFLAKE_ID;
const size = fn(2);
const result = size.fileFinishedImporting("modules/applications/getApplicationFromBotUserId.tsx");
export default function useGetApplicationFromBotUserId(arg0) {
_require = arg0;
const items = [UserProfileStore];
const stateFromStores = require("initialize").useStateFromStores(items, () => {
let tmp = closure_0;
let tmp2;
if (null !== closure_0) {
if (tmp == null) {
tmp = EMPTY_STRING_SNOWFLAKE_ID;
}
const userProfile = UserProfileStore.getUserProfile(tmp);
let application;
if (userProfile != null) {
application = userProfile.application;
}
tmp2 = application;
}
return tmp2;
});
return stateFromStores;
};