decord/alpha/source/modules/markup_v2/ChannelLinkUrls.tsx
github-actions c6aa9eb120 chore: update source for alpha 349.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5030.js (118.4 MB)
2026-10-01 06:55:13 +00:00

46 lines
1.4 KiB
TypeScript

// Module ID: 7743
// Function ID: 7744
// Name: ChannelLinkUrls
// Dependencies: [32, 4999, 2]
// Exports: parseChannelLinkUrl
// Module 7743 (ChannelLinkUrls)
import LinkUtils from "LinkUtils" /* 4999 */;
import _slicedToArray from "module_32" /* 32 */;
require = fn;
const size = fn(2);
const result = size.fileFinishedImporting("modules/markup_v2/ChannelLinkUrls.tsx");
export const parseChannelLinkUrl = function parseChannelLinkUrl(url) {
const MEDIA_POST_URL_RE = LinkUtils.MEDIA_POST_URL_RE;
const match = MEDIA_POST_URL_RE.exec(url);
if (null != match) {
const tmp6 = _slicedToArray(match, 5);
const obj3 = { guildId: tmp6[1], channelId: tmp6[3], messageId: tmp6[4], parentChannelId: tmp6[2] };
return obj3;
} else {
const CHANNEL_OR_MESSAGES_URL_RE = LinkUtils.CHANNEL_OR_MESSAGES_URL_RE;
const match1 = CHANNEL_OR_MESSAGES_URL_RE.exec(url);
if (null == match1) {
return null;
} else {
const tmp9 = _slicedToArray(match1, 4);
let tmp4 = null;
if (null != tmp9[2]) {
tmp4 = null;
if (!obj.test(tmp11)) {
if (null == tmp12) {
const obj4 = { guildId: tmp10, channelId: tmp11, messageId: tmp12, parentChannelId: "a" };
tmp4 = obj4;
} else {
tmp4 = null;
const obj2 = /\D/;
}
}
obj = /\D/;
}
return tmp4;
}
}
};