mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-25 06:34:58 +05:00
years from 1900 to 2023
This commit is contained in:
parent
a76eb997bc
commit
fd6e23c014
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ class Birthdate extends BaseCommand {
|
||||||
*/
|
*/
|
||||||
async autocompleteRun(client, interaction) {
|
async autocompleteRun(client, interaction) {
|
||||||
const int = interaction.options.getInteger("year"),
|
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(
|
return interaction.respond(
|
||||||
results.slice(0, 25).map(i => ({
|
results.slice(0, 25).map(i => ({
|
||||||
|
|
Loading…
Reference in a new issue