aboutsummaryrefslogtreecommitdiff
path: root/src/arguments/contentWithDuration.ts
blob: 314b7619f6b661b65f878e3d93f0e3fef4180e3d (plain)
1
2
3
4
5
6
7
8
import { BushArgumentTypeCaster, BushMessage } from '@lib';

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