From ac7909da8d47678147517ffc4394f7115a2a8e0d Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Tue, 13 Jun 2023 18:49:40 -0700 Subject: [PATCH] Remove discriminator from new images to existing submissions --- src/commands/challenge.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/commands/challenge.rs b/src/commands/challenge.rs index 36b52b2..b6a1a10 100644 --- a/src/commands/challenge.rs +++ b/src/commands/challenge.rs @@ -125,10 +125,9 @@ pub async fn submit(ctx: Context<'_>, submission: serenity::Attachment) -> Resul } requires_rebuild = true; let file_name = format!( - "{}-{}-{}-{}{}.{}", + "{}-{}-{}{}.{}", i + 1, slugify(&author.name), - author.discriminator, timestamp, if i == 0 { "".to_owned()