From 0d470fb85710cacf8e4a3e978271ef62944b572c Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Mon, 1 Jul 2024 18:53:19 +0100 Subject: [PATCH] ctx.message -> discord.utils.utcnow() --- src/cogs/net.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cogs/net.py b/src/cogs/net.py index 95c1c22..91bab30 100644 --- a/src/cogs/net.py +++ b/src/cogs/net.py @@ -420,7 +420,7 @@ class NetworkCog(commands.Cog): if enable_os_detection and not is_superuser: return await ctx.respond("OS detection is not available on this system.") - with tempfile.TemporaryDirectory(prefix=f"nmap-{ctx.user.id}-{ctx.message.created_at.timestamp():.0f}") as tmp: + with tempfile.TemporaryDirectory(prefix=f"nmap-{ctx.user.id}-{discord.utils.utcnow().timestamp():.0f}") as tmp: tmp_dir = Path(tmp) args = [ "nmap",