Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Roblox Webhooks Won't Display Discord Custom Emojis?

Trying to test discord webhooks for my game and everything works according to plan besides the fact that custom discord emojis will not display

the custom emoji name is :icemoji:

code:

local HS = game:GetService("HttpService")
local WebhookURL = "https://discord.com/api/webhooks/(mywebhookwillbehere)"

local MessageData = {
	["content"] = "bruh moment :icemoji:  ____ :sob:"
}
script.Parent.Touched:Connect(function(hit)
	if hit.Parent:FindFirstChild("Humanoid") then
		MessageData = HS:JSONEncode(MessageData)
	end
	HS:PostAsync(WebhookURL,MessageData)
end)

image link of my problem: https://gyazo.com/dd33974ce088d4b0db90fcc543650b3b

2 comments

0

It's likely because it's not a valid Unicode character.

1 answer

✓ Accepted answer

Get the ID of the emoji and then post the emoji like this


["content"] = "bruh moment <:emoji_name:emoji_id>  ____ :sob:"

For your emoji, you would post it like


["content"] = "bruh moment <:icemoji:emoji_id>  ____ :sob:"

This is only for custom emojis, you can post normal discord emojis normally.

3 comments

0

how do you get the id of the emoji?

0

Do :emoji_name and if it is a custom emoji it should give the whole <:emoji_name:emoji_id> thing already.

0

ok thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.