26 lines
834 B
TypeScript
26 lines
834 B
TypeScript
// Module ID: 9926
|
|
// Function ID: 76790
|
|
// Dependencies: [4947, 3759, 653, 2]
|
|
// Exports: default
|
|
|
|
// Module 9926
|
|
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
|
|
import closure_1 from "_isNativeReflectConstruct";
|
|
import { Permissions } from "ME";
|
|
|
|
const result = require("ME").fileFinishedImporting("modules/reactions/canAddNewReactions.tsx");
|
|
|
|
export default (getGuildId) => {
|
|
const guildId = getGuildId.getGuildId();
|
|
let canChatInGuildResult = null != guildId;
|
|
if (canChatInGuildResult) {
|
|
canChatInGuildResult = _isNativeReflectConstruct.canChatInGuild(guildId);
|
|
}
|
|
if (canChatInGuildResult) {
|
|
canChatInGuildResult = closure_1.can(Permissions.ADD_REACTIONS, getGuildId);
|
|
}
|
|
if (!canChatInGuildResult) {
|
|
canChatInGuildResult = getGuildId.isPrivate();
|
|
}
|
|
return canChatInGuildResult;
|
|
};
|