BinaryQuantumSoul / discord-better-messages

New rendering capabilities to discord messages
3 stars 2 forks source link

[ColorIndicator] could not be compiled #8

Closed FenekkuKitsune closed 2 months ago

FenekkuKitsune commented 2 months ago

TypeError: Cannot read properties of undefined (reading 'messageContent') at eval (betterdiscord://plugins/ColorIndicator.plugin.js:12:96) at N.requireAddon (betterdiscord/renderer.js:5:28601) at N.loadAddon (betterdiscord/renderer.js:5:6221) at N.loadAddon (betterdiscord/renderer.js:5:26269) at N.loadAllAddons (betterdiscord/renderer.js:5:9278) at N.initialize (betterdiscord/renderer.js:5:3093) at N.initialize (betterdiscord/renderer.js:5:25382) at Object.startup (betterdiscord/renderer.js:5:408589)

BinaryQuantumSoul commented 2 months ago

I need context, are you using latest ?

FenekkuKitsune commented 2 months ago

Latest. It's suddenly and randomly decided to compile today, but it's not actually highlighting anything in the chat. I tried #fff and #ffffbb and neither were highlighted.

BinaryQuantumSoul commented 2 months ago

Can you try with this exact file ? https://github.com/BinaryQuantumSoul/discord-better-messages/blob/main/plugins/ColorIndicator/ColorIndicator.plugin.js

I think you are not using the latest and I forgot to increase version number

FenekkuKitsune commented 2 months ago

I just tried it, and it doesn't work. It doesn't fail to compile as said, but it's not highlighting the text with the color.

BinaryQuantumSoul commented 2 months ago

Are you sure you enabled the plugin in better discord plugin list ? And is the color code inside a code block?

FenekkuKitsune commented 2 months ago

Ah, I wasn't aware the color code needed to be in a code block. That's not stated on the plugin description or anywhere.

BinaryQuantumSoul commented 2 months ago

You can also use an inline block. Anyway does it work now ?

FenekkuKitsune commented 2 months ago

Yes.