UNPKG

@sapphire/framework

Version:

Discord bot framework built for advanced and amazing bots.

14 lines (12 loc) 500 B
import { __name } from '../../chunk-PAWJFY3S.mjs'; import { Result } from '@sapphire/result'; import { URL } from 'node:url'; import { Identifiers } from '../errors/Identifiers.mjs'; function resolveHyperlink(parameter) { const result = Result.from(() => new URL(parameter)); return result.mapErr(() => Identifiers.ArgumentHyperlinkError); } __name(resolveHyperlink, "resolveHyperlink"); export { resolveHyperlink }; //# sourceMappingURL=hyperlink.mjs.map //# sourceMappingURL=hyperlink.mjs.map