Discord Embeds



PhantomBot Version: 2.3.9 (Revision: 37009b50)
OS Version: Windows 10
Java Version: Java
Browser and Version (for Panel Support): Chrome 61.0.3163.100
Stock PhantomBot: Yes/No (Yes if you have not modified the scripts or Java Core) Minor change to the quote system
Any Recent Changes to Your System: No

Description of Issue: Since the update to 2.3.9, Discord embeds are ignoring anything before the last comma in a sentence, and the colour is not being applied. This was an issue previously, and was successfully resolved.

This has no commas anywhere in the command.

And then with the test.


Try using 255 0 0, this isn’t really a bug. It’s just like impossible to fix.


It’s now getting the colour correctly, however it’s still ignoring most of the text.


I am going to take a look into this, I am sure it is just an evil incarnation of a regular expression.


I’ll see if it can be fixed, if not, I’ll remove it or strip commas.


NO, I’ll look. RACE YOU! <3


I feel so loved… :stuck_out_tongue:


Well, I am opening a Guinness and also looking at issues from my full time job, so we’ll see how fast I am :smiley:


This is running stock 2.3.9 and a patched bot at the same time in Discord:

I will post a patch and see if there can be a quick hotfix to just overlay the current release.


If we can’t push a quick hotfix and you want a quick fix:

Modify scripts/discord/core/misc.js

Near the top, replace the RegExp:

var embedReg = new RegExp(/\(embed\s([\w\s\d]+),\s(.*)\)/),


OK thanks. :slight_smile:
Awesome as always.


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