decord/source/modules/applications/ApplicationPresenceUtils.tsx
2026-08-08 06:10:11 +00:00

21 lines
756 B
TypeScript

// Module ID: 8826
// Function ID: 8827
// Name: shouldDisableUserPresenceInChannel
// Dependencies: [1372, 2]
// Exports: shouldDisableUserPresenceInChannel
// Module 8826 (shouldDisableUserPresenceInChannel)
import ensureGuildLoaded from "ensureGuildLoaded";
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;
};