decord/source/modules/guild_onboarding_home/useFirstMessageOrEmbedContent.tsx

45 lines
1.1 KiB
TypeScript
Raw Normal View History

// 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
// Module 16667 (useFirstMessageOrEmbedContent)
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +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 {
const embeds1 = content.embeds;
2026-07-20 16:05:17 +00:00
let length1;
if (embeds1 != null) {
length1 = embeds1.length;
2026-07-20 16:05:17 +00:00
}
if (length1 > 0) {
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;
}
}
};