Small issue on icon_url

Hey I was just making something boring and I decided to make an embed out of it.

The thing is, the icon_url doens’t work… which is quite annoying.

Any help?

local function sendMsg()

			local data = {
				['embeds'] = {{
					['title'] = "xd",
					['description'] = "laom",
					['color'] = tonumber(0xFF0000),
					['author'] = {['icon_url'] = "https://cdn.discordapp.com/attachments/833376849621942292/844536124138455100/9k.png"},
					['footer'] = {['text'] = "yes"}
				}}
			}

			local datacomplete = HttpService:JSONEncode(data)
			HttpService:PostAsync(urlLink, datacomplete)

		end

Help is appreciated

Anybody know a solution? I’m just curious, sorry.

try renaming author to avatar and try that with and without the [‘icon_url’] part.

Try this script that does everything that you need.

local http = game:GetService("HttpService")

local WEBHOOK_URL = "" -- put webhook url


local data = {
	["content"] = "message for webhook",
	["avatar_url"] = "", -- Image URL for webhook like you wanted.
	["username"] = "Web Hook 1" -- Username for webhook
}

data = http:JSONEncode(data)

http:PostAsync(WEBHOOK_URL,data)

Is it possible to do this?

THis is what I meant with

icon_url

Source: screenshot ofmy friend

image

This is possible. embeds can add more looks and functionality to the messages.

Mhm. But my issue is where I should implement the “icon_url”

The current script doens’t display the url icon I provided it

Try this script I sent. You can change the avatar_url

local http = game:GetService("HttpService")

local WEBHOOK_URL = "" -- put webhook url


local data = {
	["content"] = "message for webhook",
	["avatar_url"] = "", -- Image URL for webhook like you wanted.
	["username"] = "Web Hook 1" -- Username for webhook
}

data = http:JSONEncode(data)

http:PostAsync(WEBHOOK_URL,data)

Doens’t work.

I want it like the one I send you in the screenshot, it’s possible to change it to icon_url right by using my script?

It does work tho. I tested it.

It’s not what I meant with “icon_url”

I meant the way as I provided in the screenshot above from my friend (source).

image

WIth the square, I need that in my embed.

I don’t know where to implement it