decord/source/modules/reactions/canAddNewReactions.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

29 lines
916 B
TypeScript

// Module ID: 7971
// Function ID: 7972
// Dependencies: [5413, 4199, 1074, 2]
// Exports: default
// Module 7971
import closure_0 from "recomputeGuild" /* 5413 */;
import closure_1 from "getUncachedChannelPermissions" /* 4199 */;
import { Permissions } from "ME" /* 1074 */;
const result = require("set").fileFinishedImporting("modules/reactions/canAddNewReactions.tsx");
export default (getGuildId) => {
const guildId = getGuildId.getGuildId();
let canChatInGuildResult = null != guildId;
if (canChatInGuildResult) {
canChatInGuildResult = closure_0.canChatInGuild(guildId);
}
if (canChatInGuildResult) {
canChatInGuildResult = closure_1.can(Permissions.ADD_REACTIONS, getGuildId);
}
if (!canChatInGuildResult) {
canChatInGuildResult = getGuildId.isPrivate();
}
if (canChatInGuildResult) {
canChatInGuildResult = !getGuildId.isSystemDM();
}
return canChatInGuildResult;
};