Fix Webembed
Report by PinkDuwc._#3443
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "discord.js-selfbot-v13",
 | 
					  "name": "discord.js-selfbot-v13",
 | 
				
			||||||
  "version": "1.3.5",
 | 
					  "version": "1.3.6",
 | 
				
			||||||
  "description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]",
 | 
					  "description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]",
 | 
				
			||||||
  "main": "./src/index.js",
 | 
					  "main": "./src/index.js",
 | 
				
			||||||
  "types": "./typings/index.d.ts",
 | 
					  "types": "./typings/index.d.ts",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -227,10 +227,10 @@ class WebEmbed {
 | 
				
			|||||||
	 * @returns {MessageEmbed}
 | 
						 * @returns {MessageEmbed}
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	setImage(url) {
 | 
						setImage(url) {
 | 
				
			||||||
        if (this.thumbnail.url) {
 | 
					        if (this.thumbnail && this.thumbnail.url) {
 | 
				
			||||||
			console.warn('You can only set image or thumbnail per embed.');
 | 
								console.warn('You can only set image or thumbnail per embed.');
 | 
				
			||||||
			this.thumbnail.url = null;
 | 
								this.thumbnail.url = null;
 | 
				
			||||||
            this.imageType = 'image';
 | 
								this.imageType = 'image';
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		this.image = { url };
 | 
							this.image = { url };
 | 
				
			||||||
		return this;
 | 
							return this;
 | 
				
			||||||
@@ -242,11 +242,11 @@ class WebEmbed {
 | 
				
			|||||||
	 * @returns {MessageEmbed}
 | 
						 * @returns {MessageEmbed}
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	setThumbnail(url) {
 | 
						setThumbnail(url) {
 | 
				
			||||||
        if (this.image.url) {
 | 
					        if (this.image && this.image.url) {
 | 
				
			||||||
            console.warn('You can only set image or thumbnail per embed.');
 | 
								console.warn('You can only set image or thumbnail per embed.');
 | 
				
			||||||
            this.image.url = null;
 | 
								this.image.url = null;
 | 
				
			||||||
            this.imageType = 'thumbnail';
 | 
								this.imageType = 'thumbnail';
 | 
				
			||||||
        }
 | 
							}
 | 
				
			||||||
		this.thumbnail = { url };
 | 
							this.thumbnail = { url };
 | 
				
			||||||
		return this;
 | 
							return this;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user