#Conversion into local timestamp.

1 messages · Page 1 of 1 (latest)

next moat
#

@random wasp apologies for the delay; you pass the timestamp to Formatter.Timestamp, and your preferred format. You then just use those strings instead of ctx.Member.JoinedAt/CreationTimestamp

#

The formatter gives you the appropriate markdown for a timestamp that the client automatically localizes

#

e.g.,

#

s!remind 3h a

median riverBOT
#

I'll remind you <t:1716938032:R>!

next moat
#

(notice the lightened background on the text)

median riverBOT
safe salmon
#

Formatter.Timestamp is a static function which returns a string that is used by discord to render those timestamps