mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +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
|
* The flags this application has
|
||||||
* @type {ApplicationFlags}
|
* @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
|
* The hash of the application's cover image
|
||||||
|
|||||||
Reference in New Issue
Block a user