diff --git a/events/interactionCreate.ts b/events/interactionCreate.ts index 37a89e4..f5e429b 100644 --- a/events/interactionCreate.ts +++ b/events/interactionCreate.ts @@ -1,4 +1,4 @@ -import counter from 'txt2' +import tx2 from 'tx2' import { DiscordAutocompleteInteraction, DiscordButtonInteraction, @@ -11,7 +11,7 @@ import { /** * Custom PM2 metric. */ -const InteractionCounter = counter({ +const InteractionCounter = tx2.counter({ name: 'Interactions issued', }) diff --git a/events/messageCreate.ts b/events/messageCreate.ts index 931ba30..2a0ed1e 100644 --- a/events/messageCreate.ts +++ b/events/messageCreate.ts @@ -1,6 +1,6 @@ import { MessageEmbed } from 'discord.js' +import tx2 from 'tx2' import { DiscordClient, DiscordMessage } from '../types/customTypes' -const tx2 = require('tx2') /** * Custom PM2 metric.