decord/source/modules/messages/useMessageMaxLength.tsx

24 lines
1,001 B
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 8501
// Function ID: 8502
2026-07-29 08:29:29 +00:00
// Name: useMessageMaxLength
2026-08-24 06:08:38 +00:00
// Dependencies: [1922, 676, 4042, 589, 2]
2026-07-20 16:05:17 +00:00
// Exports: default, getMaxMessageLength
2026-08-24 06:08:38 +00:00
// Module 8501 (useMessageMaxLength)
import initialize from "initialize" /* 589 */;
import getPremiumPlanItemDefault from "getPremiumPlanItem" /* 4042 */;
import closure_3 from "mergeGuildAvatar" /* 1922 */;
import ME from "ME" /* 676 */;
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
};