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:
neoarz
2025-09-15 14:45:00 -04:00
parent 26c28fcc7a
commit 2e0c8dafd0
2 changed files with 24 additions and 26 deletions

View File

@@ -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))