Custom Gif for Discord Embed Alert


#1

PhantomBot Version: 2.4.2 (Revision: a05e247b)

Operating System: Mac OS X

Java Version: 1.8.0_151-b12

So I was told I can change out the hosted link in the file bitshandler.js.
I added my own custom gif (that’s hosted on Discord) thats the same size (28x28)
it now looks like this:


The problem is that there is now no gif that is used for the alert.
Also, I’m hoping to use a second gif for the second alert (the purple bit and the grey bit).


#2

Also I was able to get my own custom images for the embeds, but not a gif.


#3

Looking at your image you have a bad URL.

You want the line to be:

.withThumbnail('https://cdn.discordapp.com/attachments/362383215505440768/513487414061301770/ezgif-3-3e3681bb2e6d.gif')

What you have is:

.withThumbnail('https://cdn.discordapp.com/attachments/362383215505440768/513487414061301770/ezgif-3-3e3681bb2e6d.gif' + getCheerAmount(bits) + '/1.gif')

Which would cause an 404 not found or a access denied error on discord’s end.


#4

perfect! now it works. thank you!


#5

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.