decord/source/modules/reactions/canAddNewReactions.tsx
2026-07-21 06:55:02 +00:00

25 lines
810 B
TypeScript

// Module ID: 9957
// Function ID: 76916
// Dependencies: []
// Exports: default
// Module 9957
let closure_0 = importDefault(dependencyMap[0]);
let closure_1 = importDefault(dependencyMap[1]);
const Permissions = arg1(dependencyMap[2]).Permissions;
const result = arg1(dependencyMap[3]).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();
}
return canChatInGuildResult;
};