-
Notifications
You must be signed in to change notification settings - Fork 0
Util.Timestamp
github-actions[bot] edited this page Sep 30, 2024
·
4 revisions
creates a new timestamp
type: AeplSubClass
arguments:
- ?date
Date
let timestamp = new Timestamp();
let embed = new client.Embed({
description: `this was sent ${timestamp.relative} with a latency of ${timestamp.latency(message)}ms`,
timestamp: timestamp.embed,
footer: "sent at"
});
NOTE: examples provided by LeviSnoot/discord-timestamps.md
π date | None | 2018-11-28T09:01:00.000Z |
π now | None | 1698425091743 |
π snowflake | None | 517263631319040000 |
π embed | 3 years ago |
2018-11-28T09:01:00.000Z |
π default | November 28, 2018 9:01 AM |
<t:1543392060> |
π relative | 3 years ago |
<t:1543392060:R> |
π shortTime | 9:01 AM |
<t:1543392060:t> |
π longTime | 9:01:00 AM |
<t:1543392060:T> |
π shortDate | 11/28/2018 |
<t:1543392060:d> |
π longDate | November 28, 2018 |
<t:1543392060:D> |
π short | November 28, 2018 9:01 AM |
<t:1543392060:f> |
π long | Wednesday, November 28, 2018 9:01 AM |
<t:1543392060:F> |
π Client |
π AddonService |
π AttachmentService |
π ChannelService |
π CommandService |
π ComponentService |
π ErrorService |
π EventService |
π ExpressionService |
π GuildService |
π LogService |
π MessageService |
π PermissionService |
π RoleService |
π StorageService |
π TypeService |
π UserService |
π UtilService |
π VoiceService |