Skip to content

Commit

Permalink
FIX: import and convert require to import
Browse files Browse the repository at this point in the history
  • Loading branch information
Chr1s70ph committed Apr 28, 2022
1 parent ee9e979 commit 9d967f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions events/interactionCreate.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import counter from 'txt2'
import tx2 from 'tx2'
import {
DiscordAutocompleteInteraction,
DiscordButtonInteraction,
Expand All @@ -11,7 +11,7 @@ import {
/**
* Custom PM2 metric.
*/
const InteractionCounter = counter({
const InteractionCounter = tx2.counter({
name: 'Interactions issued',
})

Expand Down
2 changes: 1 addition & 1 deletion events/messageCreate.ts
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 9d967f9

Please sign in to comment.