update logger exports

This commit is contained in:
Marius Begby committed 2024-02-15 22:29:17 +01:00
1 parent cdf37ce503
commit e1b0aea7fc
62 files changed
+114 -152

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
import { LyricsData, lyricsExtractor } from '@discord-player/extractor';
import { Player, SearchResult, useMainPlayer } from 'discord-player';
import { ApplicationCommandOptionChoiceData } from 'discord.js';
import { Logger } from 'pino';
import { Logger } from '../../common/services/logger';
import { BaseAutocompleteInteraction } from '../../common/classes/interactions';
import { getTrackName, isQueryTooShort, shouldUseLastQuery } from '../../common/utils/autocompleteUtils';
import { BaseAutocompleteParams, BaseAutocompleteReturnType, RecentQuery } from '../../types/interactionTypes';
@@ -4,7 +4,7 @@ import { BaseComponentInteraction } from '../../common/classes/interactions';
import { BaseComponentParams, BaseComponentReturnType } from '../../types/interactionTypes';
import { checkQueueCurrentTrack, checkQueueExists } from '../../common/validation/queueValidator';
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../common/validation/voiceChannelValidator';
import { Logger } from 'pino';
import { Logger } from '../../common/services/logger';
import { TFunction } from 'i18next';
import { useServerTranslator } from '../../common/utils/localeUtil';
import { formatSlashCommand } from '../../common/utils/formattingUtils';
@@ -1,6 +1,6 @@
import { GuildQueue, useQueue } from 'discord-player';
import { EmbedBuilder } from 'discord.js';
import { Logger } from 'pino';
import { Logger } from '../../common/services/logger';
import { BaseComponentInteraction } from '../../common/classes/interactions';
import { BaseComponentParams, BaseComponentReturnType } from '../../types/interactionTypes';
import { checkQueueExists } from '../../common/validation/queueValidator';
@@ -1,7 +1,7 @@
import config from 'config';
import { BiquadFilters, EqualizerConfigurationPreset, GuildQueue, QueueFilters, useQueue } from 'discord-player';
import { EmbedBuilder, InteractionResponse, StringSelectMenuInteraction } from 'discord.js';
import { Logger } from 'pino';
import { Logger } from '../../common/services/logger';
import { BaseComponentInteraction } from '../../common/classes/interactions';
import {
EqualizerFilterOptions,
+1 -1
View File
@@ -4,7 +4,7 @@ import { BaseSlashCommandInteraction } from '../../common/classes/interactions';
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
import { checkHistoryExists, checkQueueCurrentTrack } from '../../common/validation/queueValidator';
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../common/validation/voiceChannelValidator';
import { Logger } from 'pino';
import { Logger } from '../../common/services/logger';
import { localizeCommand, useServerTranslator } from '../../common/utils/localeUtil';
import { TFunction } from 'i18next';
import { formatSlashCommand } from '../../common/utils/formattingUtils';
+1 -1
View File
@@ -15,7 +15,7 @@ import {
StringSelectMenuBuilder,
StringSelectMenuOptionBuilder
} from 'discord.js';
import { Logger } from 'pino';
import { Logger } from '../../common/services/logger';
import { BaseSlashCommandInteraction } from '../../common/classes/interactions';
import {
BiquadFilterOptions,
+1 -1
View File
@@ -11,7 +11,7 @@ import {
EmbedFooterData,
SlashCommandBuilder
} from 'discord.js';
import { Logger } from 'pino';
import { Logger } from '../../common/services/logger';
import { BaseSlashCommandInteraction } from '../../common/classes/interactions';
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
import { checkHistoryExists } from '../../common/validation/queueValidator';
+1 -1
View File
@@ -4,7 +4,7 @@ import { BaseSlashCommandInteraction } from '../../common/classes/interactions';
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
import { checkInVoiceChannel } from '../../common/validation/voiceChannelValidator';
import { checkVoicePermissionJoinAndTalk } from '../../common/validation/permissionValidator';
import { Logger } from 'pino';
import { Logger } from '../../common/services/logger';
import { localizeCommand, useServerTranslator } from '../../common/utils/localeUtil';
import { formatSlashCommand } from '../../common/utils/formattingUtils';
import { TFunction } from 'i18next';
+1 -1
View File
@@ -6,7 +6,7 @@ import {
SlashCommandBuilder,
SlashCommandIntegerOption
} from 'discord.js';
import { Logger } from 'pino';
import { Logger } from '../../common/services/logger';
import { BaseSlashCommandInteraction } from '../../common/classes/interactions';
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
import { checkQueueExists } from '../../common/validation/queueValidator';
+1 -1
View File
@@ -1,7 +1,7 @@
import { LyricsData, lyricsExtractor } from '@discord-player/extractor';
import { GuildQueue, Player, QueryType, SearchResult, Track, useMainPlayer, useQueue } from 'discord-player';
import { ChatInputCommandInteraction, EmbedBuilder, Message, SlashCommandBuilder } from 'discord.js';
import { Logger } from 'pino';
import { Logger } from '../../common/services/logger';
import { BaseSlashCommandInteraction } from '../../common/classes/interactions';
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
import { checkQueueCurrentTrack, checkQueueExists } from '../../common/validation/queueValidator';
+1 -1
View File
@@ -4,7 +4,7 @@ import { BaseSlashCommandInteraction } from '../../common/classes/interactions';
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
import { checkQueueCurrentTrack, checkQueueExists } from '../../common/validation/queueValidator';
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../common/validation/voiceChannelValidator';
import { Logger } from 'pino';
import { Logger } from '../../common/services/logger';
import { localizeCommand, useServerTranslator } from '../../common/utils/localeUtil';
import { TFunction } from 'i18next';
import { formatSlashCommand } from '../../common/utils/formattingUtils';
+1 -1
View File
@@ -1,6 +1,6 @@
import { GuildQueue, Track, useQueue } from 'discord-player';
import { EmbedBuilder, SlashCommandBuilder } from 'discord.js';
import { Logger } from 'pino';
import { Logger } from '../../common/services/logger';
import { BaseSlashCommandInteraction } from '../../common/classes/interactions';
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
import { checkQueueCurrentTrack, checkQueueExists } from '../../common/validation/queueValidator';
+1 -1
View File
@@ -7,7 +7,7 @@ import {
Message,
SlashCommandBuilder
} from 'discord.js';
import { Logger } from 'pino';
import { Logger } from '../../common/services/logger';
import { BaseSlashCommandInteraction, CustomError } from '../../common/classes/interactions';
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
import { checkVoicePermissionJoinAndTalk } from '../../common/validation/permissionValidator';
+1 -1
View File
@@ -11,7 +11,7 @@ import {
EmbedFooterData,
SlashCommandBuilder
} from 'discord.js';
import { Logger } from 'pino';
import { Logger } from '../../common/services/logger';
import { BaseSlashCommandInteraction } from '../../common/classes/interactions';
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
import { checkQueueExists } from '../../common/validation/queueValidator';
+1 -1
View File
@@ -5,7 +5,7 @@ import {
EmbedBuilder,
SlashCommandBuilder
} from 'discord.js';
import { Logger } from 'pino';
import { Logger } from '../../common/services/logger';
import { BaseSlashCommandInteraction } from '../../common/classes/interactions';
import { ExtendedClient } from '../../types/clientTypes';
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
+1 -1
View File
@@ -4,7 +4,7 @@ import { BaseSlashCommandInteraction } from '../../common/classes/interactions';
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
import { checkQueueExists } from '../../common/validation/queueValidator';
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../common/validation/voiceChannelValidator';
import { Logger } from 'pino';
import { Logger } from '../../common/services/logger';
import { TFunction } from 'i18next';
import { localizeCommand, useServerTranslator } from '../../common/utils/localeUtil';
import { formatSlashCommand } from '../../common/utils/formattingUtils';
+1 -1
View File
@@ -4,7 +4,7 @@ import { BaseSlashCommandInteraction } from '../../common/classes/interactions';
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
import { checkQueueCurrentTrack, checkQueueExists } from '../../common/validation/queueValidator';
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../common/validation/voiceChannelValidator';
import { Logger } from 'pino';
import { Logger } from '../../common/services/logger';
import { localizeCommand, useServerTranslator } from '../../common/utils/localeUtil';
import { TFunction } from 'i18next';
import { formatSlashCommand } from '../../common/utils/formattingUtils';
+1 -1
View File
@@ -9,7 +9,7 @@ import { BaseSlashCommandInteraction } from '../../common/classes/interactions';
import { ExtendedClient } from '../../types/clientTypes';
import { BaseSlashCommandParams, BaseSlashCommandReturnType, ShardInfo } from '../../types/interactionTypes';
import { checkValidGuildId } from '../../common/validation/systemCommandValidator';
import { Logger } from 'pino';
import { Logger } from '../../common/services/logger';
import { localizeCommand } from '../../common/utils/localeUtil';
class ShardsCommand extends BaseSlashCommandInteraction {
+1 -1
View File
@@ -4,7 +4,7 @@ import { BaseSlashCommandInteraction } from '../../common/classes/interactions';
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
import { checkQueueCurrentTrack, checkQueueExists } from '../../common/validation/queueValidator';
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../common/validation/voiceChannelValidator';
import { Logger } from 'pino';
import { Logger } from '../../common/services/logger';
import { localizeCommand, useServerTranslator } from '../../common/utils/localeUtil';
import { TFunction } from 'i18next';
import { formatRepeatModeDetailed, formatSlashCommand } from '../../common/utils/formattingUtils';
+1 -1
View File
@@ -4,7 +4,7 @@ import { BaseSlashCommandInteraction } from '../../common/classes/interactions';
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
import { checkQueueExists } from '../../common/validation/queueValidator';
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../common/validation/voiceChannelValidator';
import { Logger } from 'pino';
import { Logger } from '../../common/services/logger';
import { localizeCommand, useServerTranslator } from '../../common/utils/localeUtil';
import { TFunction } from 'i18next';