Typescript Continue

This commit is contained in:
Christer Warén
2023-06-04 06:20:37 +03:00
parent 3fc7337d0f
commit fb36a8f890
6 changed files with 13 additions and 14 deletions

View File

@@ -1,7 +1,8 @@
import { ActionRowBuilder, EmbedBuilder, StringSelectMenuBuilder } from "discord.js";
import Streamer from "../classes/Streamer";
const _importDynamic = new Function('modulePath', 'return import(modulePath)');
const fetch = (...args: any) => _importDynamic('node-fetch').then(({default: fetch}) => fetch(...args));
// @ts-ignore
const fetch = (...args) => _importDynamic('node-fetch').then(({default: fetch}) => fetch(...args));
export default {
name: 'maintenance',