decord/source/modules/applications/ApplicationPresenceUtils.tsx
2026-08-24 06:08:38 +00:00

21 lines
759 B
TypeScript

// Module ID: 9010
// Function ID: 9011
// Name: shouldDisableUserPresenceInChannel
// Dependencies: [1391, 2]
// Exports: shouldDisableUserPresenceInChannel
// Module 9010 (shouldDisableUserPresenceInChannel)
import closure_0 from "ensureGuildLoaded" /* 1391 */;
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;
};