mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(ClientApplication): freeze flags (#5811)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user