decord/source/modules/reactions/canAddNewReactions.tsx
2026-07-20 17:37:48 +00:00

25 lines
812 B
TypeScript

// Module ID: 10882
// Function ID: 84565
// Dependencies: []
// Exports: default
// Module 10882
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;
};