mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: switched to Node module resolution
This commit is contained in:
1 parent
21158e9081
commit
1d4ac2f133
108 files changed
+541
-533
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import { AutocompleteInteraction, CacheType } from 'discord.js';
|
||||
import { commands } from '../index.js';
|
||||
import { commands } from '..';
|
||||
|
||||
export default function handleAutocomplete(
|
||||
interaction: AutocompleteInteraction<CacheType>,
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { ButtonInteraction, CacheType } from 'discord.js';
|
||||
import { CYCLIC_API } from '../../../constants/cyclic.js';
|
||||
import normalizeInteractionReturnable from '../../../core/discord/normalizeInteractionReturnable.js';
|
||||
import throwError from '../../../core/node/throwError.js';
|
||||
import { commands } from '../index.js';
|
||||
import { commands } from '..';
|
||||
import { CYCLIC_API } from '../../../constants/cyclic';
|
||||
import normalizeInteractionReturnable from '../../../core/discord/normalizeInteractionReturnable';
|
||||
import throwError from '../../../core/node/throwError';
|
||||
|
||||
export default async function handleButton(
|
||||
interaction: ButtonInteraction<CacheType>,
|
||||
|
||||
@@ -5,12 +5,12 @@ import {
|
||||
CacheType,
|
||||
ChatInputCommandInteraction,
|
||||
} from 'discord.js';
|
||||
import embedNegative from '../../../core/discord/embedNegative.js';
|
||||
import normalizeInteractionReturnable from '../../../core/discord/normalizeInteractionReturnable.js';
|
||||
import embedWarning from '../../../core/discord/embedWarning.js';
|
||||
import { psa } from '../../../core/discord/psa.js';
|
||||
import { handleError } from '../../error.js';
|
||||
import { commands } from '../index.js';
|
||||
import { commands } from '..';
|
||||
import embedNegative from '../../../core/discord/embedNegative';
|
||||
import embedWarning from '../../../core/discord/embedWarning';
|
||||
import normalizeInteractionReturnable from '../../../core/discord/normalizeInteractionReturnable';
|
||||
import { psa } from '../../../core/discord/psa';
|
||||
import { handleError } from '../../error';
|
||||
|
||||
export default async function handleChatInputCommand(
|
||||
interaction: ChatInputCommandInteraction<CacheType>,
|
||||
|
||||
@@ -13,28 +13,28 @@ import {
|
||||
SlashCommandSubcommandsOnlyBuilder,
|
||||
} from 'discord.js';
|
||||
import discord from '../../../discord.json' assert { type: 'json' };
|
||||
import { debugCommand } from '../../commands/debug.js';
|
||||
import { eligibleCommand } from '../../commands/eligible.js';
|
||||
import { evolutionCommand } from '../../commands/evolution.js';
|
||||
import { fullStatsCommand } from '../../commands/fullStats.js';
|
||||
import { helpCommand } from '../../commands/help.js';
|
||||
import { inactiveCommand } from '../../commands/inactive.js';
|
||||
import { ownedTanksCommand } from '../../commands/ownedTanks.js';
|
||||
import { pingCommand } from '../../commands/ping.js';
|
||||
import { playerAchievementsCommand } from '../../commands/playerAchievements.js';
|
||||
import { playerInfoCommand } from '../../commands/playerInfo.js';
|
||||
import { searchClansCommand } from '../../commands/searchClans.js';
|
||||
import { searchPlayersCommand } from '../../commands/searchPlayers.js';
|
||||
import { searchTanksCommand } from '../../commands/searchTanks.js';
|
||||
import { statsCommand } from '../../commands/stats.js';
|
||||
import { todayCommand } from '../../commands/today.js';
|
||||
import { verifyCommand } from '../../commands/verify.js';
|
||||
import { DISCORD_TOKEN } from '../../core/node/arguments.js';
|
||||
import getClientId from '../../core/node/getClientId.js';
|
||||
import isDev from '../../core/node/isDev.js';
|
||||
import handleAutocomplete from './handlers/autocomplete.js';
|
||||
import handleButton from './handlers/button.js';
|
||||
import handleChatInputCommand from './handlers/chatInputCommand.js';
|
||||
import { debugCommand } from '../../commands/debug';
|
||||
import { eligibleCommand } from '../../commands/eligible';
|
||||
import { evolutionCommand } from '../../commands/evolution';
|
||||
import { fullStatsCommand } from '../../commands/fullStats';
|
||||
import { helpCommand } from '../../commands/help';
|
||||
import { inactiveCommand } from '../../commands/inactive';
|
||||
import { ownedTanksCommand } from '../../commands/ownedTanks';
|
||||
import { pingCommand } from '../../commands/ping';
|
||||
import { playerAchievementsCommand } from '../../commands/playerAchievements';
|
||||
import { playerInfoCommand } from '../../commands/playerInfo';
|
||||
import { searchClansCommand } from '../../commands/searchClans';
|
||||
import { searchPlayersCommand } from '../../commands/searchPlayers';
|
||||
import { searchTanksCommand } from '../../commands/searchTanks';
|
||||
import { statsCommand } from '../../commands/stats';
|
||||
import { todayCommand } from '../../commands/today';
|
||||
import { verifyCommand } from '../../commands/verify';
|
||||
import { DISCORD_TOKEN } from '../../core/node/arguments';
|
||||
import getClientId from '../../core/node/getClientId';
|
||||
import isDev from '../../core/node/isDev';
|
||||
import handleAutocomplete from './handlers/autocomplete';
|
||||
import handleButton from './handlers/button';
|
||||
import handleChatInputCommand from './handlers/chatInputCommand';
|
||||
|
||||
export type InteractionRawReturnable =
|
||||
| string
|
||||
|
||||
Reference in new issue
Block a user