From e990c35476fb6f7e1a5449493833140144e0469c Mon Sep 17 00:00:00 2001 From: Jan <66554238+vaporox@users.noreply.github.com> Date: Sat, 12 Jun 2021 00:22:10 +0200 Subject: [PATCH] fix(ClientApplication): freeze flags (#5811) --- src/structures/ClientApplication.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/ClientApplication.js b/src/structures/ClientApplication.js index 04971ea0dce3..6176036d51c9 100644 --- a/src/structures/ClientApplication.js +++ b/src/structures/ClientApplication.js @@ -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