From fd6e23c0147c1ee25dfeb31cbfba4d739dedf57a Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Wed, 31 May 2023 21:49:14 +0500 Subject: [PATCH] years from 1900 to 2023 --- commands/Economy/birthdate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/Economy/birthdate.js b/commands/Economy/birthdate.js index 87989fd1..80ae9455 100644 --- a/commands/Economy/birthdate.js +++ b/commands/Economy/birthdate.js @@ -84,7 +84,7 @@ class Birthdate extends BaseCommand { */ async autocompleteRun(client, interaction) { const int = interaction.options.getInteger("year"), - results = Array.from({ length: 2023 }, (_, k) => k + 1).filter(i => i.toString().includes(int)); + results = Array.from({ length: (2023 - 1900) / 1 }, (_, i) => 1900 + i * 1).filter(i => i.toString().includes(int)); return interaction.respond( results.slice(0, 25).map(i => ({