aboutsummaryrefslogtreecommitdiff
path: root/src/arguments/contentWithDuration.ts
blob: a9a7c23b2c1b0604336f13dd34ca9dfc1fc61499 (plain)
1
2
3
4
5
6
7
8
import { type BushArgumentTypeCaster } from '#lib';

export const contentWithDuration: BushArgumentTypeCaster = async (
	_,
	phrase
): Promise<{ duration: number | null; contentWithoutTime: string | null }> => {
	return client.util.parseDuration(phrase);
};