From 9169958264bb6a450a1c1687cf9f533d048f7f8d Mon Sep 17 00:00:00 2001 From: Gus Caplan Date: Thu, 19 Oct 2017 00:02:32 -0500 Subject: [PATCH] feat(Guild): add verified getter (#2027) --- src/structures/Guild.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index 5871418d0..d3b3320c7 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -266,6 +266,15 @@ class Guild { return new Date(this.joinedTimestamp); } + /** + * If this guild is verified + * @type {boolean} + * @readonly + */ + get verified() { + return this.features.includes('VERIFIED'); + } + /** * The URL to this guild's icon * @type {?string}