Skip to content
This repository has been archived by the owner on Dec 24, 2021. It is now read-only.

fix: replace resolveString with verifyString #402

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/extensions/message.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { Structures, escapeMarkdown, splitMessage, resolveString } = require('discord.js');
const { Structures, escapeMarkdown, splitMessage, verifyString } = require('discord.js');
const { oneLine } = require('common-tags');
const Command = require('../commands/base');
const FriendlyError = require('../errors/friendly');
Expand Down Expand Up @@ -283,7 +283,7 @@ module.exports = Structures.extend('Message', Message => {
}
}

content = resolveString(content);
content = verifyString(this.options.content, RangeError, 'MESSAGE_CONTENT_TYPE', false);
monbrey marked this conversation as resolved.
Show resolved Hide resolved

switch(type) {
case 'plain':
Expand Down