Files
discord-decomp/modules/channel_autocomplete/ChannelAutocompleteConstants.tsx
T
2026-11-01 12:12:55 +02:00

31 lines
919 B
TypeScript

// Metro module 4624 (f4625).
let c2820_0 = [];
const r15 = /^<@\$(\d+)>/;
let c2820_1 = new RegExp(r15.source.replace(/^\^/, ""), "g");
export const MENTION_SENTINEL = "@";
export const GAME_MENTION_SENTINEL = "$";
export const CHANNEL_SENTINEL = "#";
export const EMOJI_SENTINEL = ":";
export const REACTION_START_SENTINEL = "+:";
export const REACTION_END_SENTINEL = ":";
export const COMMAND_SENTINEL = "/";
export const GAME_MENTION_INPUT_PREFIX = "@game:";
export function formatGameMentionRaw(a0) {
return `<@\$${a0}>`;
}
export function formatGameMentionToken(a0) {
return `\$${a0}`;
}
export { r15 as GAME_MENTION_RAW_RE };
export { c2820_1 as GAME_MENTION_RAW_RE_GLOBAL };
export function extractGameMentionIds(a0) {
if (a0.includes("<@$")) {
let r17 = [...a0.matchAll(c2820_1)].map((item) => item[1]);
if (!(r17.length > 0)) {
r17 = c2820_0;
}
return r17;
}
return c2820_0;
}