1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-03 08:28:31 +00:00
* API Added: Certain methods will now log warnings when in developer mode if being called incorrectly. For example, if an add-on registers new badge data without including its add-on ID as the data source. Expect these to be expanded over time.
* API Added: Add-on modules and sub-modules will all have an `addon_id` property containing their source add-on's ID, as well as an `addon_root` property with a reference to the add-on's root module.
* API Changed: The `ffz_user_class` property of chat messages should now be a `Set`, if it is defined.
* API Changed: Add-on module proxies are now cached.
This commit is contained in:
SirStendec 2023-11-03 14:40:58 -04:00
parent 04969cc57e
commit 71f347ab70
12 changed files with 202 additions and 45 deletions

View file

@ -100,7 +100,9 @@ export default class Line extends Module {
const override_name = t.overrides.getName(user.id);
let user_class = msg.ffz_user_class;
if ( Array.isArray(user_class) )
if ( user_class instanceof Set )
user_class = [...user_class].join(' ');
else if ( Array.isArray(user_class) )
user_class = user_class.join(' ');
const user_props = {