2026-09-05 10:56:28 +00:00
|
|
|
// Module ID: 8231
|
|
|
|
|
// Function ID: 8232
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: shouldDisableUserPresenceInChannel
|
2026-09-05 10:56:28 +00:00
|
|
|
// Dependencies: [1957, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: shouldDisableUserPresenceInChannel
|
|
|
|
|
|
2026-09-05 10:56:28 +00:00
|
|
|
// Module 8231 (shouldDisableUserPresenceInChannel)
|
|
|
|
|
import closure_0 from "ensureGuildLoaded" /* 1957 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
|
|
|
|
const result = require("set").fileFinishedImporting("modules/applications/ApplicationPresenceUtils.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export const shouldDisableUserPresenceInChannel = function shouldDisableUserPresenceInChannel(bot, channelId) {
|
|
|
|
|
let channel = bot;
|
2026-07-20 16:05:17 +00:00
|
|
|
channel = channel.getChannel(channelId);
|
2026-07-29 08:29:29 +00:00
|
|
|
let tmp = null != channel && bot.bot && channel.isPrivate();
|
2026-07-20 16:05:17 +00:00
|
|
|
if (tmp) {
|
|
|
|
|
const rawRecipients = channel.rawRecipients;
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp = null == rawRecipients.find((id) => id.id === bot.id);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
};
|