diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/extensions/discord-akairo/BushClientUtil.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/extensions/discord-akairo/BushClientUtil.ts b/src/lib/extensions/discord-akairo/BushClientUtil.ts index 6889ae0..c3739d6 100644 --- a/src/lib/extensions/discord-akairo/BushClientUtil.ts +++ b/src/lib/extensions/discord-akairo/BushClientUtil.ts @@ -612,6 +612,14 @@ export class BushClientUtil extends ClientUtil { } /** + * Combines {@link timestamp} and {@link dateDelta} + * @param date The date to be compared with the current time. + */ + public timestampAndDelta(date: Date): string { + return `${this.timestamp(date)} (${this.dateDelta(date)} ago)`; + } + + /** * Convert a hex code to an rbg value. * @param hex The hex code to convert. * @returns The rbg value. |