2026-07-25 08:10:48 +00:00
|
|
|
// Module ID: 9926
|
2026-07-27 11:26:19 +00:00
|
|
|
// Function ID: 76790
|
2026-07-25 08:10:48 +00:00
|
|
|
// Dependencies: [4947, 3759, 653, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-07-25 08:10:48 +00:00
|
|
|
// Module 9926
|
2026-07-23 10:11:24 +00:00
|
|
|
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
|
|
|
|
|
import closure_1 from "_isNativeReflectConstruct";
|
|
|
|
|
import { Permissions } from "ME";
|
|
|
|
|
|
|
|
|
|
const result = require("ME").fileFinishedImporting("modules/reactions/canAddNewReactions.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default (getGuildId) => {
|
|
|
|
|
const guildId = getGuildId.getGuildId();
|
|
|
|
|
let canChatInGuildResult = null != guildId;
|
|
|
|
|
if (canChatInGuildResult) {
|
2026-07-23 10:11:24 +00:00
|
|
|
canChatInGuildResult = _isNativeReflectConstruct.canChatInGuild(guildId);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if (canChatInGuildResult) {
|
|
|
|
|
canChatInGuildResult = closure_1.can(Permissions.ADD_REACTIONS, getGuildId);
|
|
|
|
|
}
|
|
|
|
|
if (!canChatInGuildResult) {
|
|
|
|
|
canChatInGuildResult = getGuildId.isPrivate();
|
|
|
|
|
}
|
|
|
|
|
return canChatInGuildResult;
|
|
|
|
|
};
|