diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-04 14:40:16 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-04 14:40:16 -0500 |
commit | 19c0a3709156056fd092c2a43b1b47cf29f3b65f (patch) | |
tree | 8f4d3292a5b78ca0e92c14cab8229b2a37fc8dfb /src/lib/extensions/discord-akairo/BushClientUtil.ts | |
parent | d5d5fd6f77f2d778ab099d52f1acaad762712822 (diff) | |
download | tanzanite-19c0a3709156056fd092c2a43b1b47cf29f3b65f.tar.gz tanzanite-19c0a3709156056fd092c2a43b1b47cf29f3b65f.tar.bz2 tanzanite-19c0a3709156056fd092c2a43b1b47cf29f3b65f.zip |
remove source-map-support and moment
Diffstat (limited to 'src/lib/extensions/discord-akairo/BushClientUtil.ts')
-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. |