Skip to content

Commit

Permalink
ref: update warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
ItzDerock committed Aug 21, 2022
1 parent 3d3a247 commit ac0ba13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/exporthtml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ const Attachment = (
userDiscord.MessageAttachment
) as Class<discordv14.AttachmentBuilder | discordv13.MessageAttachment>;

if (!process.env.HIDE_TRANSCRIPT_WARNINGS && isDJSv14)
if (!process.env.HIDE_TRANSCRIPT_WARNINGS && !isDJSv14)
console.log(
'[WARN] discord-html-transcripts was designed to work with v13, but you are using v14. Please note that some bugs may occur.'
'[WARN] discord-html-transcripts will no longer support v13 in a later release, please update to v14.'
);
// because of needing to support v13/14, you may seem some weird typescript "hacks"

Expand Down

0 comments on commit ac0ba13

Please sign in to comment.