From 995c0360fe2ae11e9c9c2c82f8bdd81966e2919b Mon Sep 17 00:00:00 2001 From: Federico fuji97 Rapetti Date: Sun, 26 Dec 2021 19:44:17 +0100 Subject: [PATCH] Change module version to ES2020 --- src/events/guild-create.ts | 8 +------- tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/events/guild-create.ts b/src/events/guild-create.ts index 38f6e6c..722b736 100644 --- a/src/events/guild-create.ts +++ b/src/events/guild-create.ts @@ -1,10 +1,4 @@ -import { - Guild, - TextChannel, - Message, - MessageReaction, - User, - ApplicationCommandData, +import {Guild, TextChannel, Message, MessageReaction, User, ApplicationCommandData, } from 'discord.js'; import emoji from 'node-emoji'; import pEvent from 'p-event'; diff --git a/tsconfig.json b/tsconfig.json index 28b7f7d..2970aa3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "lib": ["ES2019", "DOM"], "target": "es2018", - "module": "es2022", + "module": "ES2020", "moduleResolution": "node", "declaration": true, "outDir": "dist",