2026-08-05 07:35:12 +00:00
|
|
|
// Module ID: 8720
|
|
|
|
|
// Function ID: 8721
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: shouldDisableUserPresenceInChannel
|
2026-07-29 08:29:29 +00:00
|
|
|
// Dependencies: [1372, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: shouldDisableUserPresenceInChannel
|
|
|
|
|
|
2026-08-05 07:35:12 +00:00
|
|
|
// Module 8720 (shouldDisableUserPresenceInChannel)
|
2026-07-29 08:29:29 +00:00
|
|
|
import ensureGuildLoaded from "ensureGuildLoaded";
|
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;
|
|
|
|
|
};
|