2026-09-12 13:45:10 +00:00
|
|
|
// Module ID: 16667
|
|
|
|
|
// Function ID: 16668
|
2026-07-29 08:29:29 +00:00
|
|
|
// Name: useFirstMessageOrEmbedContent
|
2026-07-23 10:11:24 +00:00
|
|
|
// Dependencies: [2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-12 13:45:10 +00:00
|
|
|
// Module 16667 (useFirstMessageOrEmbedContent)
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/guild_onboarding_home/useFirstMessageOrEmbedContent.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function useFirstMessageOrEmbedContent(content) {
|
|
|
|
|
if (null == content) {
|
|
|
|
|
return null;
|
|
|
|
|
} else {
|
|
|
|
|
content = content.content;
|
|
|
|
|
let length;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (content != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
length = content.length;
|
|
|
|
|
}
|
|
|
|
|
if (length > 0) {
|
|
|
|
|
return content.content;
|
|
|
|
|
} else {
|
2026-09-10 05:38:07 +00:00
|
|
|
const embeds1 = content.embeds;
|
2026-07-20 16:05:17 +00:00
|
|
|
let length1;
|
2026-09-10 05:38:07 +00:00
|
|
|
if (embeds1 != null) {
|
|
|
|
|
length1 = embeds1.length;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if (length1 > 0) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const embeds = content.embeds;
|
2026-07-29 08:29:29 +00:00
|
|
|
for (const item10013 of embeds) {
|
|
|
|
|
if (null != item10013.rawDescription) {
|
|
|
|
|
if (tmp5.rawDescription.length > 0) {
|
|
|
|
|
obj.return();
|
|
|
|
|
return item10013.rawDescription;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
continue;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|