mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
feat(Guild): nsfw guilds (#5525)
Co-authored-by: Advaith <advaithj1@gmail.com>
This commit is contained in:
@@ -101,6 +101,14 @@ class Guild extends Base {
|
||||
* @type {number}
|
||||
*/
|
||||
this.shardID = data.shardID;
|
||||
|
||||
if ('nsfw' in data) {
|
||||
/**
|
||||
* Whether the guild is designated as not safe for work
|
||||
* @type {boolean}
|
||||
*/
|
||||
this.nsfw = data.nsfw;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user