Skip to content

Commit

Permalink
fix(ClientApplication): freeze flags (#5811)
Browse files Browse the repository at this point in the history
  • Loading branch information
vaporoxx committed Jun 11, 2021
1 parent a5a6e22 commit e990c35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/ClientApplication.js
Expand Up @@ -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
Expand Down

0 comments on commit e990c35

Please sign in to comment.