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

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