mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-07 18:02:31 -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:
@@ -643,7 +643,7 @@ class KickBanMixin(MixinMeta):
|
||||
with contextlib.suppress(discord.HTTPException):
|
||||
# We don't want blocked DMs preventing us from banning
|
||||
msg = _("You have been temporarily banned from {server_name} until {date}.").format(
|
||||
server_name=guild.name, date=unban_time.strftime("%m-%d-%Y %H:%M:%S")
|
||||
server_name=guild.name, date=f"<t:{int(unban_time.timestamp())}>"
|
||||
)
|
||||
if guild_data["dm_on_kickban"] and reason:
|
||||
msg += _("\n\n**Reason:** {reason}").format(reason=reason)
|
||||
|
||||
Reference in New Issue
Block a user