diff --git a/src/structures/Guild.js b/src/structures/Guild.js index 61634f001413..6672a8b187b9 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -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; + } } /** diff --git a/typings/index.d.ts b/typings/index.d.ts index a4c8e51f4af7..e98a8af31e82 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -641,6 +641,7 @@ declare module 'discord.js' { public mfaLevel: number; public name: string; public readonly nameAcronym: string; + public nsfw: boolean; public ownerID: Snowflake; public readonly partnered: boolean; public preferredLocale: string;