decord/source/modules/applications/getApplicationFromBotUserId.tsx

38 lines
1.1 KiB
TypeScript
Raw Normal View History

// Module ID: 12630
// Function ID: 12631
// Name: getApplicationFromBotUserId
// Dependencies: [7635, 1074, 504, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 12630 (getApplicationFromBotUserId)
import UserProfileStore from "UserProfileStore" /* 7635 */;
2026-07-23 10:11:24 +00:00
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");
2026-07-20 16:05:17 +00:00
export default function useGetApplicationFromBotUserId(arg0) {
_require = arg0;
const items = [UserProfileStore];
const stateFromStores = require("initialize").useStateFromStores(items, () => {
2026-07-29 08:29:29 +00:00
let tmp = closure_0;
let tmp2;
2026-07-23 10:11:24 +00:00
if (null !== closure_0) {
2026-07-29 08:29:29 +00:00
if (tmp == null) {
tmp = EMPTY_STRING_SNOWFLAKE_ID;
2026-07-29 08:29:29 +00:00
}
const userProfile = UserProfileStore.getUserProfile(tmp);
2026-07-20 16:05:17 +00:00
let application;
2026-07-29 08:29:29 +00:00
if (userProfile != null) {
2026-07-20 16:05:17 +00:00
application = userProfile.application;
}
2026-07-29 08:29:29 +00:00
tmp2 = application;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp2;
2026-07-20 16:05:17 +00:00
});
2026-07-29 08:29:29 +00:00
return stateFromStores;
2026-07-20 16:05:17 +00:00
};