decord/source/modules/app_dms/getAppDMApplication.tsx
github-actions 7450227d0b chore: update source for alpha 345.4
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9596_m.js (380.6 MB)
2026-09-04 17:41:35 +00:00

44 lines
1.2 KiB
TypeScript

// Module ID: 12128
// Function ID: 12129
// Name: getAppDMApplication
// Dependencies: [4522, 7554, 1921, 2]
// Exports: getAppDMApplication
// Module 12128 (getAppDMApplication)
import closure_0 from "addApplication" /* 4522 */;
import closure_1 from "createUserWidgetFromServer" /* 7554 */;
import closure_2 from "mergeGuildAvatar" /* 1921 */;
const result = require("set").fileFinishedImporting("modules/app_dms/getAppDMApplication.tsx");
export const getAppDMApplication = function getAppDMApplication(channel) {
let recipientId;
if (channel.isPrivate()) {
recipientId = channel.getRecipientId();
}
user = user.getUser(recipientId);
let bot;
if (user != null) {
bot = user.bot;
}
let tmp4;
if (true === bot) {
tmp4 = recipientId;
}
appIdForBotUserId = appIdForBotUserId.getAppIdForBotUserId(tmp4);
if (null != tmp4) {
userProfile = userProfile.getUserProfile(tmp4);
let id;
if (userProfile != null) {
const application = userProfile.application;
if (application != null) {
id = application.id;
}
}
const tmp6 = id;
}
if (appIdForBotUserId == null) {
appIdForBotUserId = tmp6;
}
return appIdForBotUserId.getApplication(appIdForBotUserId);
};