Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
44 lines
1.1 KiB
TypeScript
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;
|
|
}
|
|
}
|
|
};
|