devland.js
Advanced tools
Comparing version 1.2.47 to 1.2.48
@@ -35,3 +35,2 @@ const Client = require('./structures/client/client') | ||
const Role = require('./structures/models/Role') | ||
const AuditLogs = require('./structures/models/AuditLogs') | ||
const Log = require('./structures/models/Log') | ||
@@ -94,3 +93,2 @@ const Invite = require('./structures/models/Invite') | ||
Role, | ||
AuditLogs, | ||
Log, | ||
@@ -97,0 +95,0 @@ Invite, |
@@ -12,3 +12,3 @@ { | ||
"name": "devland.js", | ||
"version": "1.2.47", | ||
"version": "1.2.48", | ||
"description": "A powerful API wrapper for the Discord API designed for modern bots", | ||
@@ -15,0 +15,0 @@ "main": "index.js", |
@@ -12,3 +12,3 @@ const { EventEmitter } = require('events') | ||
const ShardClientUtil = require('../sharding/ShardClientUtil') | ||
const webSocket = require('../gateway/webSocket-new') | ||
const webSocket = require('../gateway/webSocket') | ||
/** | ||
@@ -15,0 +15,0 @@ * @extends {EventEmitter} |
@@ -13,4 +13,4 @@ const Permissions = require("../util/BitFieldManagement/Permissions") | ||
this.nsfw = options?.nsfw | ||
this.id = options?.id, | ||
this.application_id = options?.application_id | ||
this.id = options?.id | ||
this.application_id = options?.application_id | ||
this.guild_id = options?.guild_id | ||
@@ -17,0 +17,0 @@ } |
@@ -27,3 +27,2 @@ const ClientUser = require('./ClientUser') | ||
const Role = require('./Role') | ||
const AuditLogs = require('./AuditLogs') | ||
const Log = require('./Log') | ||
@@ -67,3 +66,2 @@ const Invite = require('./Invite') | ||
Role, | ||
AuditLogs, | ||
Log, | ||
@@ -70,0 +68,0 @@ Invite, |
@@ -18,3 +18,3 @@ const { parseEmoji } = require("../util") | ||
pack() { | ||
if (typeof this.name !== "string") throw new TypeError("The modal name must be provided as a string") | ||
if (typeof this.name === "undefined") throw new TypeError("The modal name must be provided as a string") | ||
if (typeof this.customId !== "string" && typeof this.custom_id !== "string") throw new TypeError("The modal custom Id must be provided as a string") | ||
@@ -21,0 +21,0 @@ if (!Array.isArray(this.components)) throw new TypeError("The modal components must be provided as a array") |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
9
1708036
130
18507