16 lines
565 B
TypeScript
16 lines
565 B
TypeScript
// Metro module 4024 (f4025).
|
|
import { PSEUDO_GUILD_IDS } from "./RouteConstants";
|
|
import { isStaticChannelRoute } from "../channel/ChannelConstants";
|
|
import { RouteParam } from "./RouteParam";
|
|
let c2302_2 = /^\d+$/;
|
|
exports.RouteParam = RouteParam;
|
|
export function isPseudoGuildId(a0) {
|
|
return PSEUDO_GUILD_IDS.includes(a0);
|
|
}
|
|
export function isValidGuildId(a0) {
|
|
return a0 != null && (!!PSEUDO_GUILD_IDS.includes(a0) || !!c2302_2.test(a0));
|
|
}
|
|
export function isValidChannelId(a0) {
|
|
return a0 == null || (!!c2302_2.test(a0) || !!isStaticChannelRoute(a0));
|
|
}
|