Skip to content

Commit

Permalink
refactor: use the node: protocol (#2126)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lioness100 authored Nov 22, 2021
1 parent da41a04 commit 541988b
Show file tree
Hide file tree
Showing 73 changed files with 89 additions and 89 deletions.
10 changes: 5 additions & 5 deletions scripts/build/grpc.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { execFile } from 'child_process';
import { execFile } from 'node:child_process';
import { gray, green, red } from 'colorette';
import { mkdir, readdir, rm, writeFile } from 'fs/promises';
import { dirname, join, sep } from 'path';
import { fileURLToPath } from 'url';
import { promisify } from 'util';
import { mkdir, readdir, rm, writeFile } from 'node:fs/promises';
import { dirname, join, sep } from 'node:path';
import { fileURLToPath } from 'node:url';
import { promisify } from 'node:util';

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
Expand Down
2 changes: 1 addition & 1 deletion scripts/migrations.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { readFile } from 'fs/promises';
import { readFile } from 'node:fs/promises';
import typeorm from 'typeorm';
import dbConfig from '../dist/lib/database/database.config.js';

Expand Down
4 changes: 2 additions & 2 deletions src/audio/lib/queue/QueueStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { rootFolder } from '#utils/constants';
import Collection from '@discordjs/collection';
import { container } from '@sapphire/framework';
import { isNullish } from '@sapphire/utilities';
import { readFileSync } from 'fs';
import { readFileSync } from 'node:fs';
import type { KeyType, Redis } from 'ioredis';
import { resolve } from 'path';
import { resolve } from 'node:path';
import { Queue } from './Queue';
import type { QueueClient } from './QueueClient';

Expand Down
2 changes: 1 addition & 1 deletion src/commands/Animal/bunny.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { send } from '@sapphire/plugin-editable-commands';
import { isNullishOrEmpty } from '@sapphire/utilities';
import { PermissionFlagsBits } from 'discord-api-types/v9';
import { Message, MessageEmbed } from 'discord.js';
import { URL } from 'url';
import { URL } from 'node:url';

const url = new URL('https://api.bunnies.io/v2/loop/random/?media=gif,png');

Expand Down
4 changes: 2 additions & 2 deletions src/commands/Animal/catfact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { ApplyOptions } from '@sapphire/decorators';
import { send } from '@sapphire/plugin-editable-commands';
import { PermissionFlagsBits } from 'discord-api-types/v9';
import { Message, MessageEmbed } from 'discord.js';
import { readFile } from 'fs/promises';
import { join } from 'path';
import { readFile } from 'node:fs/promises';
import { join } from 'node:path';

@ApplyOptions<SkyraCommand.Options>({
aliases: ['kittenfact'],
Expand Down
2 changes: 1 addition & 1 deletion src/commands/Animal/fox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { fetch, FetchResultTypes } from '@sapphire/fetch';
import { send } from '@sapphire/plugin-editable-commands';
import { PermissionFlagsBits } from 'discord-api-types/v9';
import { Message, MessageEmbed } from 'discord.js';
import { URL } from 'url';
import { URL } from 'node:url';

const url = new URL('https://randomfox.ca/floof');

Expand Down
2 changes: 1 addition & 1 deletion src/commands/Animation/kitsu-anime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { MimeTypes } from '@sapphire/plugin-api';
import { cutText } from '@sapphire/utilities';
import { Message, MessageEmbed } from 'discord.js';
import type { TFunction } from 'i18next';
import { stringify } from 'querystring';
import { stringify } from 'node:querystring';

const API_URL = `https://${process.env.KITSU_ID}-dsn.algolia.net/1/indexes/production_media/query`;

Expand Down
2 changes: 1 addition & 1 deletion src/commands/Animation/kitsu-manga.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { MimeTypes } from '@sapphire/plugin-api';
import { cutText } from '@sapphire/utilities';
import { Message, MessageEmbed } from 'discord.js';
import type { TFunction } from 'i18next';
import { stringify } from 'querystring';
import { stringify } from 'node:querystring';

const API_URL = `https://${process.env.KITSU_ID}-dsn.algolia.net/1/indexes/production_media/query`;

Expand Down
2 changes: 1 addition & 1 deletion src/commands/Developers/yarn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { cutText } from '@sapphire/utilities';
import { PermissionFlagsBits } from 'discord-api-types/v9';
import { Message, MessageEmbed } from 'discord.js';
import type { TFunction } from 'i18next';
import { stringify } from 'querystring';
import { stringify } from 'node:querystring';

const API_URL = `https://${process.env.NPM_SEARCH_ID}-dsn.algolia.net/1/indexes/npm-search/query`;

Expand Down
2 changes: 1 addition & 1 deletion src/commands/Fun/changemymind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { send } from '@sapphire/plugin-editable-commands';
import { Canvas, Image, resolveImage } from 'canvas-constructor/skia';
import { PermissionFlagsBits } from 'discord-api-types/v9';
import type { Message, User } from 'discord.js';
import { join } from 'path';
import { join } from 'node:path';

@ApplyOptions<SkyraCommand.Options>({
aliases: ['cmm'],
Expand Down
2 changes: 1 addition & 1 deletion src/commands/Fun/howtoflirt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { send } from '@sapphire/plugin-editable-commands';
import { Canvas, Image, resolveImage } from 'canvas-constructor/skia';
import { PermissionFlagsBits } from 'discord-api-types/v9';
import type { Message, User } from 'discord.js';
import { join } from 'path';
import { join } from 'node:path';

const imageCoordinates = [
[
Expand Down
2 changes: 1 addition & 1 deletion src/commands/Fun/peepolove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { send } from '@sapphire/plugin-editable-commands';
import { Canvas, Image, resolveImage } from 'canvas-constructor/skia';
import { PermissionFlagsBits } from 'discord-api-types/v9';
import type { Message } from 'discord.js';
import { join } from 'path';
import { join } from 'node:path';

@ApplyOptions<SkyraCommand.Options>({
aliases: ['pepelove'],
Expand Down
2 changes: 1 addition & 1 deletion src/commands/Fun/shindeiru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { send } from '@sapphire/plugin-editable-commands';
import { Canvas, Image, resolveImage } from 'canvas-constructor/skia';
import { PermissionFlagsBits } from 'discord-api-types/v9';
import type { Message, User } from 'discord.js';
import { join } from 'path';
import { join } from 'node:path';

@ApplyOptions<SkyraCommand.Options>({
description: LanguageKeys.Commands.Fun.ShindeiruDescription,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/Fun/think.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { send } from '@sapphire/plugin-editable-commands';
import { Canvas, Image, resolveImage } from 'canvas-constructor/skia';
import { PermissionFlagsBits } from 'discord-api-types/v9';
import type { Message, User } from 'discord.js';
import { join } from 'path';
import { join } from 'node:path';

@ApplyOptions<SkyraCommand.Options>({
description: LanguageKeys.Commands.Fun.ThinkDescription,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/Fun/wakanda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { send } from '@sapphire/plugin-editable-commands';
import { Canvas, Image, resolveImage } from 'canvas-constructor/skia';
import { PermissionFlagsBits } from 'discord-api-types/v9';
import type { Message } from 'discord.js';
import { join } from 'path';
import { join } from 'node:path';

@ApplyOptions<SkyraCommand.Options>({
description: LanguageKeys.Commands.Fun.WakandaDescription,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/Fun/where.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { send } from '@sapphire/plugin-editable-commands';
import { Canvas, Image, resolveImage } from 'canvas-constructor/skia';
import { PermissionFlagsBits } from 'discord-api-types/v9';
import type { Message, User } from 'discord.js';
import { join } from 'path';
import { join } from 'node:path';

@ApplyOptions<SkyraCommand.Options>({
description: LanguageKeys.Commands.Fun.WhereDescription,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/GameIntegration/brawlstars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { send } from '@sapphire/plugin-editable-commands';
import { isNullishOrEmpty } from '@sapphire/utilities';
import { Message, MessageEmbed } from 'discord.js';
import type { TFunction } from 'i18next';
import { URL } from 'url';
import { URL } from 'node:url';

const kTagRegex = /^#?[0289PYLQGRJCUV]{3,9}$/;

Expand Down
2 changes: 1 addition & 1 deletion src/commands/GameIntegration/clashofclans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { send } from '@sapphire/plugin-editable-commands';
import { toTitleCase } from '@sapphire/utilities';
import { Message, MessageEmbed } from 'discord.js';
import type { TFunction } from 'i18next';
import { URL } from 'url';
import { URL } from 'node:url';

const enum ClashOfClansFetchCategories {
PLAYERS = 'players',
Expand Down
2 changes: 1 addition & 1 deletion src/commands/Games/hungergames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { send } from '@sapphire/plugin-editable-commands';
import { chunk, isFunction } from '@sapphire/utilities';
import { PermissionFlagsBits } from 'discord-api-types/v9';
import type { TFunction } from 'i18next';
import { setTimeout as sleep } from 'timers/promises';
import { setTimeout as sleep } from 'node:timers/promises';

@ApplyOptions<SkyraCommand.Options>({
aliases: ['hunger-games', 'hg'],
Expand Down
2 changes: 1 addition & 1 deletion src/commands/Google/currenttime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { fetch, FetchResultTypes } from '@sapphire/fetch';
import { send } from '@sapphire/plugin-editable-commands';
import { PermissionFlagsBits } from 'discord-api-types/v9';
import { Message, MessageEmbed } from 'discord.js';
import { URL } from 'url';
import { URL } from 'node:url';

@ApplyOptions<SkyraCommand.Options>({
enabled: envIsDefined('GOOGLE_MAPS_API_TOKEN', 'TIMEZONEDB_TOKEN'),
Expand Down
2 changes: 1 addition & 1 deletion src/commands/Levelling/level.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Canvas, Image, resolveImage, rgba } from 'canvas-constructor/skia';
import { PermissionFlagsBits } from 'discord-api-types/v9';
import type { Message, User } from 'discord.js';
import type { TFunction } from 'i18next';
import { join } from 'path';
import { join } from 'node:path';

const THEMES_FOLDER = join(cdnFolder, 'skyra-assets', 'banners');

Expand Down
2 changes: 1 addition & 1 deletion src/commands/Levelling/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Canvas, Image, resolveImage } from 'canvas-constructor/skia';
import { PermissionFlagsBits } from 'discord-api-types/v9';
import type { Message, User } from 'discord.js';
import type { TFunction } from 'i18next';
import { join } from 'path';
import { join } from 'node:path';

// Skyra's CDN assets folder
const THEMES_FOLDER = join(cdnFolder, 'skyra-assets', 'banners');
Expand Down
2 changes: 1 addition & 1 deletion src/commands/Misc/chase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { send } from '@sapphire/plugin-editable-commands';
import { Canvas, Image, resolveImage } from 'canvas-constructor/skia';
import { PermissionFlagsBits } from 'discord-api-types/v9';
import type { Message, User } from 'discord.js';
import { join } from 'path';
import { join } from 'node:path';

@ApplyOptions<SkyraCommand.Options>({
description: LanguageKeys.Commands.Misc.ChaseDescription,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/Misc/cuddle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { send } from '@sapphire/plugin-editable-commands';
import { Canvas, Image, resolveImage } from 'canvas-constructor/skia';
import { PermissionFlagsBits } from 'discord-api-types/v9';
import type { Message, User } from 'discord.js';
import { join } from 'path';
import { join } from 'node:path';

@ApplyOptions<SkyraCommand.Options>({
description: LanguageKeys.Commands.Misc.CuddleDescription,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/Misc/deletthis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { send } from '@sapphire/plugin-editable-commands';
import { Canvas, Image, resolveImage } from 'canvas-constructor/skia';
import { PermissionFlagsBits } from 'discord-api-types/v9';
import type { Message, User } from 'discord.js';
import { join } from 'path';
import { join } from 'node:path';

@ApplyOptions<SkyraCommand.Options>({
aliases: ['deletethis'],
Expand Down
2 changes: 1 addition & 1 deletion src/commands/Misc/f.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { send } from '@sapphire/plugin-editable-commands';
import { Canvas, Image, resolveImage } from 'canvas-constructor/skia';
import { PermissionFlagsBits } from 'discord-api-types/v9';
import type { Message, User } from 'discord.js';
import { join } from 'path';
import { join } from 'node:path';

@ApplyOptions<SkyraCommand.Options>({
aliases: ['pray'],
Expand Down
2 changes: 1 addition & 1 deletion src/commands/Misc/good-night.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { send } from '@sapphire/plugin-editable-commands';
import { Canvas, Image, resolveImage } from 'canvas-constructor/skia';
import { PermissionFlagsBits } from 'discord-api-types/v9';
import type { Message, User } from 'discord.js';
import { join } from 'path';
import { join } from 'node:path';

@ApplyOptions<SkyraCommand.Options>({
aliases: ['gn', 'night'],
Expand Down
2 changes: 1 addition & 1 deletion src/commands/Misc/goofytime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { send } from '@sapphire/plugin-editable-commands';
import { Canvas, Image, resolveImage } from 'canvas-constructor/skia';
import { PermissionFlagsBits } from 'discord-api-types/v9';
import type { Message, User } from 'discord.js';
import { join } from 'path';
import { join } from 'node:path';

@ApplyOptions<SkyraCommand.Options>({
aliases: ['goof', 'goofy', 'daddy', 'goofie', 'goofietime'],
Expand Down
2 changes: 1 addition & 1 deletion src/commands/Misc/hug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { send } from '@sapphire/plugin-editable-commands';
import { Canvas, Image, resolveImage } from 'canvas-constructor/skia';
import { PermissionFlagsBits } from 'discord-api-types/v9';
import type { Message, User } from 'discord.js';
import { join } from 'path';
import { join } from 'node:path';

@ApplyOptions<SkyraCommand.Options>({
description: LanguageKeys.Commands.Misc.HugDescription,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/Misc/ineedhealing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { send } from '@sapphire/plugin-editable-commands';
import { Canvas, Image, resolveImage } from 'canvas-constructor/skia';
import { PermissionFlagsBits } from 'discord-api-types/v9';
import type { Message, User } from 'discord.js';
import { join } from 'path';
import { join } from 'node:path';

@ApplyOptions<SkyraCommand.Options>({
aliases: ['heal', 'healing'],
Expand Down
2 changes: 1 addition & 1 deletion src/commands/Misc/reddituser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { cutText, roundNumber } from '@sapphire/utilities';
import { Collection, Message, MessageEmbed } from 'discord.js';
import { decode } from 'he';
import type { TFunction } from 'i18next';
import { URL } from 'url';
import { URL } from 'node:url';

const kUserNameRegex = /^(?:\/?u\/)?[A-Za-z0-9_-]*$/;

Expand Down
2 changes: 1 addition & 1 deletion src/commands/Misc/ship.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Canvas, Image, resolveImage } from 'canvas-constructor/skia';
import { remove as removeConfusables } from 'confusables';
import { PermissionFlagsBits } from 'discord-api-types/v9';
import type { User } from 'discord.js';
import { join } from 'path';
import { join } from 'node:path';

@ApplyOptions<SkyraCommand.Options>({
description: LanguageKeys.Commands.Misc.ShipDescription,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/Misc/slap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { send } from '@sapphire/plugin-editable-commands';
import { Canvas, Image, resolveImage } from 'canvas-constructor/skia';
import { PermissionFlagsBits } from 'discord-api-types/v9';
import type { Message, User } from 'discord.js';
import { join } from 'path';
import { join } from 'node:path';

@ApplyOptions<SkyraCommand.Options>({
description: LanguageKeys.Commands.Misc.SlapDescription,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/Misc/thesearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { send } from '@sapphire/plugin-editable-commands';
import { Canvas, Image, resolveImage } from 'canvas-constructor/skia';
import { PermissionFlagsBits } from 'discord-api-types/v9';
import type { Message } from 'discord.js';
import { join } from 'path';
import { join } from 'node:path';

@ApplyOptions<SkyraCommand.Options>({
description: LanguageKeys.Commands.Misc.TheSearchDescription,
Expand Down
4 changes: 2 additions & 2 deletions src/commands/Misc/triggered.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import { GifEncoder } from '@skyra/gifenc';
import { Canvas, Image, resolveImage, rgba } from 'canvas-constructor/skia';
import { PermissionFlagsBits } from 'discord-api-types/v9';
import type { Message, User } from 'discord.js';
import { join } from 'path';
import { buffer } from 'stream/consumers';
import { join } from 'node:path';
import { buffer } from 'node:stream/consumers';

const COORDINATES: readonly [number, number][] = [
[-25, -25],
Expand Down
4 changes: 2 additions & 2 deletions src/commands/System/Admin/eval.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import { Stopwatch } from '@sapphire/stopwatch';
import { Type } from '@sapphire/type';
import { codeBlock, isThenable } from '@sapphire/utilities';
import type { Message } from 'discord.js';
import { setTimeout as sleep } from 'timers/promises';
import { inspect } from 'util';
import { setTimeout as sleep } from 'node:timers/promises';
import { inspect } from 'node:util';

@ApplyOptions<SkyraCommand.Options>({
aliases: ['ev'],
Expand Down
2 changes: 1 addition & 1 deletion src/commands/System/Admin/heapsnapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { PermissionLevels } from '#lib/types/Enums';
import { ApplyOptions } from '@sapphire/decorators';
import { send } from '@sapphire/plugin-editable-commands';
import type { Message } from 'discord.js';
import { writeHeapSnapshot } from 'v8';
import { writeHeapSnapshot } from 'node:v8';

@ApplyOptions<SkyraCommand.Options>({
description: LanguageKeys.Commands.Admin.HeapSnapshotDescription,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/System/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { send } from '@sapphire/plugin-editable-commands';
import { roundNumber } from '@sapphire/utilities';
import { PermissionFlagsBits } from 'discord-api-types/v9';
import { Message, MessageEmbed, version } from 'discord.js';
import { CpuInfo, cpus, uptime } from 'os';
import { CpuInfo, cpus, uptime } from 'node:os';

@ApplyOptions<SkyraCommand.Options>({
aliases: ['stats', 'sts'],
Expand Down
2 changes: 1 addition & 1 deletion src/commands/Tools/Websearch/dsearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { fetch, FetchResultTypes, QueryError } from '@sapphire/fetch';
import { send } from '@sapphire/plugin-editable-commands';
import { PermissionFlagsBits } from 'discord-api-types/v9';
import { Message, MessageEmbed } from 'discord.js';
import { URL } from 'url';
import { URL } from 'node:url';

@ApplyOptions<SkyraCommand.Options>({
aliases: ['duckduckgo'],
Expand Down
2 changes: 1 addition & 1 deletion src/commands/Tools/Websearch/eshop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { cutText, toTitleCase } from '@sapphire/utilities';
import { Message, MessageEmbed } from 'discord.js';
import { decode } from 'he';
import type { TFunction } from 'i18next';
import { stringify } from 'querystring';
import { stringify } from 'node:querystring';

const API_URL = `https://${process.env.NINTENDO_ID}-dsn.algolia.net/1/indexes/ncom_game_en_us/query`;

Expand Down
2 changes: 1 addition & 1 deletion src/commands/Tools/Websearch/itunes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { ApplyOptions } from '@sapphire/decorators';
import { fetch, FetchResultTypes } from '@sapphire/fetch';
import { Message, MessageEmbed } from 'discord.js';
import type { TFunction } from 'i18next';
import { URL } from 'url';
import { URL } from 'node:url';

@ApplyOptions<PaginatedMessageCommand.Options>({
description: LanguageKeys.Commands.Tools.ITunesDescription,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/Tools/Websearch/movies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { fetch, FetchResultTypes } from '@sapphire/fetch';
import { cutText } from '@sapphire/utilities';
import { Message, MessageEmbed } from 'discord.js';
import type { TFunction } from 'i18next';
import { URL } from 'url';
import { URL } from 'node:url';

@ApplyOptions<PaginatedMessageCommand.Options>({
enabled: envIsDefined('THEMOVIEDATABASE_TOKEN'),
Expand Down
2 changes: 1 addition & 1 deletion src/commands/Tools/Websearch/price.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { NonNullObject, roundNumber } from '@sapphire/utilities';
import { PermissionFlagsBits } from 'discord-api-types/v9';
import { MessageEmbed } from 'discord.js';
import type { TFunction } from 'i18next';
import { URL } from 'url';
import { URL } from 'node:url';

@ApplyOptions<SkyraCommand.Options>({
enabled: envIsDefined('CRYPTOCOMPARE_TOKEN'),
Expand Down
Loading

0 comments on commit 541988b

Please sign in to comment.