decord/source/modules/guild_onboarding_home/useFirstMessageOrEmbedContent.tsx
github-actions a36fe4ec9c chore: update source for alpha 347.0
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-14 20:04:03 +00:00

44 lines
1.1 KiB
TypeScript

// Module ID: 16669
// Function ID: 16670
// Name: useFirstMessageOrEmbedContent
// Dependencies: [2]
// Exports: default
// Module 16669 (useFirstMessageOrEmbedContent)
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/guild_onboarding_home/useFirstMessageOrEmbedContent.tsx");
export default function useFirstMessageOrEmbedContent(content) {
if (null == content) {
return null;
} else {
content = content.content;
let length;
if (content != null) {
length = content.length;
}
if (length > 0) {
return content.content;
} else {
const embeds1 = content.embeds;
let length1;
if (embeds1 != null) {
length1 = embeds1.length;
}
if (length1 > 0) {
const embeds = content.embeds;
for (const item10013 of embeds) {
if (null != item10013.rawDescription) {
if (tmp5.rawDescription.length > 0) {
obj.return();
return item10013.rawDescription;
}
}
continue;
}
}
return null;
}
}
};