1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-05 22:00:54 +00:00
* Fixed: When unloading an emote set, also unload its CSS block.
* API Added: `badges.removeBadge()` method for removing a badge from the system.
* API Added: `chat.iterateUsers()` method to iterate all User instances.
* API Added: `getUser().removeAllBadges()` method to remove all badges from a provider.
* API Added: `getRoom().iterateUsers()` method to iterate all User instances on a Room instance.
* API Added: `tooltips.define()` method to add a tool-tip handler to the system.
* API Changed: All core modules now use the add-on proxies to track which add-ons are responsible for injecting content, and to make it easier to unload (and reload) add-ons.
* API Changed: Many core module methods now display warning messages in the console when used improperly. For now, this mainly checks that IDs are correct, but there may be more warnings in the future.
* API Fixed: Calling `resolve()` will now properly use add-on proxies.
* Experiment Changed: Improved handling for server disconnects with the MQTT experiment, as well as handling for topic mapping changes.
This commit is contained in:
SirStendec 2023-11-04 19:00:27 -04:00
parent c4da7fa9d9
commit 675512e811
13 changed files with 1008 additions and 146 deletions

View file

@ -64,6 +64,11 @@ export default class User {
}
}
_unloadAddon(addon_id) {
// TODO: This
return 0;
}
get id() {
return this._id;
}
@ -153,6 +158,18 @@ export default class User {
}
removeAllBadges(provider) {
if ( this.destroyed || ! this.badges )
return false;
if ( ! this.badges.has(provider) )
return false;
// Just yeet them all since we don't ref badges.
this.badges.delete(provider);
return true;
}
// ========================================================================
// Emote Sets