2026-08-25 06:04:03 +00:00
|
|
|
// Module ID: 8973
|
|
|
|
|
// Function ID: 8974
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: shouldDisableUserPresenceInChannel
|
2026-08-11 06:20:06 +00:00
|
|
|
// Dependencies: [1391, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: shouldDisableUserPresenceInChannel
|
|
|
|
|
|
2026-08-25 06:04:03 +00:00
|
|
|
// Module 8973 (shouldDisableUserPresenceInChannel)
|
2026-08-24 06:08:38 +00:00
|
|
|
import closure_0 from "ensureGuildLoaded" /* 1391 */;
|
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;
|
|
|
|
|
};
|