feat(structures/guild): add nsfw: boolean

This commit is contained in:
DjDeveloper 2021-04-14 14:38:02 +05:30 committed by GitHub
parent 30be804166
commit f8ecaba024
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -187,6 +187,7 @@ export class Guild extends SnowflakeBase {
approximateNumberCount?: number
approximatePresenceCount?: number
bans: GuildBans
nsfw: boolean
/** Get Shard ID of Guild on which it is */
get shardID(): number {
@ -261,6 +262,7 @@ export class Guild extends SnowflakeBase {
data.approximate_number_count ?? this.approximateNumberCount
this.approximatePresenceCount =
data.approximate_presence_count ?? this.approximatePresenceCount
this.nsfw = data.nsfw ?? this.nsfw
}
}