devland.js
Advanced tools
Comparing version 1.2.28 to 1.2.29
@@ -12,3 +12,3 @@ { | ||
"name": "devland.js", | ||
"version": "1.2.28", | ||
"version": "1.2.29", | ||
"description": "A powerful API wrapper for the Discord API designed for modern bots", | ||
@@ -15,0 +15,0 @@ "main": "index.js", |
@@ -424,4 +424,9 @@ const Client = require('../client/client') | ||
if (typeof input_id !== "string") throw new TypeError("You didn't provide any input Id") | ||
if (!this.data) return null | ||
if (!this.data?.components) return null | ||
if (this.data?.components?.length < 1) return null | ||
let goodComponent = this.data.components.find(comp => comp.components.find(c => c.custom_id === input_id)) | ||
if (!goodComponent) return null | ||
if (!goodComponent.components) return null | ||
if (goodComponent.components.length < 1) return null | ||
let value = goodComponent.components.find(comp => comp.custom_id === input_id) | ||
@@ -428,0 +433,0 @@ if (!value) return null |
1644473
126
17185