discord-api-docs icon indicating copy to clipboard operation
discord-api-docs copied to clipboard

embed thumbnail width and hight doesnt work

Open flav-code opened this issue 1 year ago • 3 comments

Description

In the embeds there is the thumbnail property but the width and height do not work

Steps to Reproduce

Create an embed with a thumbnail and add width and height property { color: 9731306, fields: [], author: { name: 'Music Added', icon_url: undefined, url: undefined }, thumbnail: { url: 'https://i.scdn.co/image/ab67616d00001e025fa646a4cfcd17842fdd7bbd', width: 200, height: 200 }, description: 'Heart - Alone - 03:38' }

Expected Behavior

he thumbnail should have a size of 64x64 pixel

Current Behavior

The size of the image is not changed when the embed is displayed on discord

Screenshots/Videos

image

Client and System Information

Library: Eris 0.17.1 Debian 11 nodejs: v17.9.0

flav-code avatar Aug 09 '22 16:08 flav-code

This is working as intended:

https://discord.com/developers/docs/resources/channel#create-message

For the embed object, you can set every field except type (it will be rich regardless of if you try to set it), provider, video, and any height, width, or proxy_url values for images.

MinnDevelopment avatar Aug 09 '22 16:08 MinnDevelopment

This is working as intended:

https://discord.com/developers/docs/resources/channel#create-message

For the embed object, you can set every field except type (it will be rich regardless of if you try to set it), provider, video, and any height, width, or proxy_url values for images.

I don't really understand what that means

flav-code avatar Aug 09 '22 16:08 flav-code

the width and height properties are read-only; the only thing you can set is the url

advaith1 avatar Aug 09 '22 16:08 advaith1

The comments here are correct, the fields you're talking about are read-only.

zeylahellyer avatar Aug 29 '22 18:08 zeylahellyer