decord/source/modules/applications/ApplicationPresenceUtils.tsx
2026-09-02 09:53:35 +00:00

21 lines
759 B
TypeScript

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