why does this check exist
This commit is contained in:
parent
a8e9ed2dca
commit
026cc7ddb1
1 changed files with 0 additions and 1 deletions
|
@ -101,7 +101,6 @@ class RichEmbed {
|
|||
*/
|
||||
setImage (imageURL) {
|
||||
if (typeof imageURL !== 'string') throw new TypeError(`Expected type 'string', received type ${typeof imageURL}`);
|
||||
if (!imageURL.startsWith('attachment://') && !URL_REGEX.test(imageURL)) throw new Error('Not a well formed URL');
|
||||
this.image = { url: imageURL };
|
||||
return this;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue