mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-07 09:52:30 -05:00
* Improve and add more usage of discord timestamps
* How did that whitespace get there?
(cherry picked from commit a0a433b13d)
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
This commit is contained in:
@@ -527,7 +527,7 @@ class Mutes(VoiceMutes, commands.Cog, metaclass=CompositeMetaClass):
|
||||
if duration:
|
||||
duration_str = humanize_timedelta(timedelta=duration)
|
||||
until = datetime.now(timezone.utc) + duration
|
||||
until_str = until.strftime("%Y-%m-%d %H:%M:%S UTC")
|
||||
until_str = f"<t:{int(until.timestamp())}>"
|
||||
|
||||
if moderator is None:
|
||||
moderator_str = _("Unknown")
|
||||
|
||||
Reference in New Issue
Block a user