devland.js
Advanced tools
Comparing version 1.1.48 to 1.1.49
@@ -12,3 +12,3 @@ { | ||
"name": "devland.js", | ||
"version": "1.1.48", | ||
"version": "1.1.49", | ||
"description": "A powerful API wrapper for the Discord API designed for modern bots", | ||
@@ -15,0 +15,0 @@ "main": "index.js", |
@@ -78,4 +78,4 @@ const MemberFlags = require('../util/BitFieldManagement/MemberFlags') | ||
if (typeof data.communication_disabled_until !== "undefined") { | ||
if (data.communication_disabled_until !== null && typeof data.communication_disabled_until !== "number") return reject(new TypeError("The communication disabled until state must be a number")) | ||
data.communication_disabled_until = Date.now()+data.communication_disabled_until | ||
if (!(data.communication_disabled_until instanceof Date) && data.communication_disabled_until !== null && typeof data.communication_disabled_until !== "number") return reject(new TypeError("The communication disabled until state must be a number")) | ||
data.communication_disabled_until = !(data.communication_disabled_until instanceof Date) ? new Date(Date.now() + data.communication_disabled_until) : new Date(data.communication_disabled_until.getTime()) | ||
} | ||
@@ -82,0 +82,0 @@ if (typeof data.flags !== "undefined") { |
1571639