Skip to content

Commit

Permalink
feat(Guild): nsfw guilds (#5525)
Browse files Browse the repository at this point in the history
Co-authored-by: Advaith <advaithj1@gmail.com>
  • Loading branch information
almostSouji and advaith1 committed Apr 18, 2021
1 parent 1be67b8 commit 5968323
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/structures/Guild.js
Expand Up @@ -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;
}
}

/**
Expand Down
1 change: 1 addition & 0 deletions typings/index.d.ts
Expand Up @@ -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;
Expand Down

0 comments on commit 5968323

Please sign in to comment.