fix(ClientApplication): freeze flags (#5811)

This commit is contained in:
Jan
2021-06-12 00:22:10 +02:00
committed by GitHub
parent a5a6e22316
commit e990c35476

View File

@@ -27,7 +27,7 @@ class ClientApplication extends Application {
* The flags this application has
* @type {ApplicationFlags}
*/
this.flags = 'flags' in data ? new ApplicationFlags(data.flags) : this.flags;
this.flags = 'flags' in data ? new ApplicationFlags(data.flags).freeze() : this.flags;
/**
* The hash of the application's cover image