mirror of
https://github.com/neoarz/Syntrel.git
synced 2025-12-25 11:40:12 +01:00
fix: make archived messages be in order
Refactored the archive command to collect messages before writing to the log file, ensuring chronological order. Updated server creation date formatting in serverinfo embed footer for better readability.
This commit is contained in:
@@ -47,7 +47,7 @@ class ServerInfo(commands.Cog, name="serverinfo"):
|
||||
name=f"Roles ({len(context.guild.roles)})",
|
||||
value=roles
|
||||
)
|
||||
embed.set_footer(text=f"Created at: {context.guild.created_at}")
|
||||
embed.set_footer(text=f"Created at: {context.guild.created_at.strftime('%m/%d/%Y')}")
|
||||
|
||||
if getattr(context, "interaction", None):
|
||||
await context.interaction.response.send_message(embed=embed, ephemeral=True)
|
||||
@@ -55,5 +55,4 @@ class ServerInfo(commands.Cog, name="serverinfo"):
|
||||
await context.send(embed=embed)
|
||||
|
||||
async def setup(bot) -> None:
|
||||
await bot.add_cog(ServerInfo(bot))
|
||||
|
||||
await bot.add_cog(ServerInfo(bot))
|
||||
Reference in New Issue
Block a user