decord/source/modules/messages/useMessageMaxLength.tsx

24 lines
1,003 B
TypeScript
Raw Normal View History

// Module ID: 9309
// Function ID: 9310
2026-07-29 08:29:29 +00:00
// Name: useMessageMaxLength
// Dependencies: [1371, 1074, 4218, 504, 2]
2026-07-20 16:05:17 +00:00
// Exports: default, getMaxMessageLength
// Module 9309 (useMessageMaxLength)
import initialize from "initialize" /* 504 */;
import getPremiumPlanItemDefault from "getPremiumPlanItem" /* 4218 */;
import closure_3 from "mergeGuildAvatar" /* 1371 */;
import ME from "ME" /* 1074 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-29 08:29:29 +00:00
({ MAX_MESSAGE_LENGTH_PREMIUM: c4, MAX_MESSAGE_LENGTH: c5 } = ME);
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/messages/useMessageMaxLength.tsx");
2026-07-20 16:05:17 +00:00
export default function useMessageMaxLength() {
2026-08-24 06:08:38 +00:00
const items = [closure_3];
return initialize.useStateFromStores(items, () => callback(table[2]).canUseIncreasedMessageLength(currentUser.getCurrentUser()) ? closure_4 : closure_5);
2026-07-20 16:05:17 +00:00
};
export const getMaxMessageLength = function getMaxMessageLength() {
2026-08-24 06:08:38 +00:00
return getPremiumPlanItemDefault.canUseIncreasedMessageLength(currentUser.getCurrentUser()) ? closure_4 : closure_5;
2026-07-20 16:05:17 +00:00
};