refactor: migrate from node-fetch to undici and clean up dependencies

This commit is contained in:
Elysia
2024-11-27 16:10:54 +07:00
parent d1df7cbca2
commit 38bff20b1b
8 changed files with 44 additions and 50 deletions

View File

@@ -5,7 +5,7 @@ const { parse } = require('node:path');
const process = require('node:process');
const { setTimeout } = require('node:timers');
const { Collection } = require('@discordjs/collection');
const fetch = require('node-fetch');
const { fetch } = require('undici');
const { Colors, Events } = require('./Constants');
const { Error: DiscordError, RangeError, TypeError } = require('../errors');
const has = (o, k) => Object.prototype.hasOwnProperty.call(o, k);