decord/source/modules/applications/ApplicationPresenceUtils.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

21 lines
759 B
TypeScript

// Module ID: 8231
// Function ID: 8232
// Name: shouldDisableUserPresenceInChannel
// Dependencies: [1957, 2]
// Exports: shouldDisableUserPresenceInChannel
// Module 8231 (shouldDisableUserPresenceInChannel)
import closure_0 from "ensureGuildLoaded" /* 1957 */;
const result = require("set").fileFinishedImporting("modules/applications/ApplicationPresenceUtils.tsx");
export const shouldDisableUserPresenceInChannel = function shouldDisableUserPresenceInChannel(bot, channelId) {
let channel = bot;
channel = channel.getChannel(channelId);
let tmp = null != channel && bot.bot && channel.isPrivate();
if (tmp) {
const rawRecipients = channel.rawRecipients;
tmp = null == rawRecipients.find((id) => id.id === bot.id);
}
return tmp;
};