devland.js
Advanced tools
Comparing version 1.2.32 to 1.2.33
@@ -12,3 +12,3 @@ { | ||
"name": "devland.js", | ||
"version": "1.2.32", | ||
"version": "1.2.33", | ||
"description": "A powerful API wrapper for the Discord API designed for modern bots", | ||
@@ -15,0 +15,0 @@ "main": "index.js", |
@@ -87,2 +87,3 @@ const Client = require('../client/client') | ||
this.client.rest.post(this.client._ENDPOINTS.MESSAGES(this.id), data).then(messageData => { | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.guild, this, messageData)) | ||
@@ -95,2 +96,3 @@ }).catch(e => { | ||
this.client.rest.post(this.client._ENDPOINTS.MESSAGES(this.id), data).then(messageData => { | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.guild, this, messageData)) | ||
@@ -110,2 +112,3 @@ }).catch(e => { | ||
this.client.rest.post(this.client._ENDPOINTS.MESSAGES(this.id), data).then(messageData => { | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.guild, this, messageData)) | ||
@@ -141,2 +144,3 @@ }).catch(e => { | ||
this.client.rest.post(this.client._ENDPOINTS.MESSAGES(this.id), data).then(messageData => { | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.guild, this, messageData)) | ||
@@ -143,0 +147,0 @@ }).catch(e => { |
@@ -67,2 +67,3 @@ const Client = require('../client/client') | ||
this.client.rest.post(this.client._ENDPOINTS.MESSAGES(this.id), data).then(messageData => { | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.guild, this, messageData)) | ||
@@ -75,2 +76,3 @@ }).catch(e => { | ||
this.client.rest.post(this.client._ENDPOINTS.MESSAGES(this.id), data).then(messageData => { | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.guild, this, messageData)) | ||
@@ -90,2 +92,3 @@ }).catch(e => { | ||
this.client.rest.post(this.client._ENDPOINTS.MESSAGES(this.id), data).then(messageData => { | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.guild, this, messageData)) | ||
@@ -121,2 +124,3 @@ }).catch(e => { | ||
this.client.rest.post(this.client._ENDPOINTS.MESSAGES(this.id), data).then(messageData => { | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.guild, this, messageData)) | ||
@@ -123,0 +127,0 @@ }).catch(e => { |
@@ -94,2 +94,3 @@ const Client = require('../client/client') | ||
this.client.rest.post(this.client._ENDPOINTS.MESSAGES(this.id), data).then(messageData => { | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.guild, this, messageData)) | ||
@@ -102,2 +103,3 @@ }).catch(e => { | ||
this.client.rest.post(this.client._ENDPOINTS.MESSAGES(this.id), data).then(messageData => { | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.guild, this, messageData)) | ||
@@ -117,2 +119,3 @@ }).catch(e => { | ||
this.client.rest.post(this.client._ENDPOINTS.MESSAGES(this.channelId), data).then(messageData => { | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.guild, this, messageData)) | ||
@@ -148,2 +151,3 @@ }).catch(e => { | ||
this.client.rest.post(this.client._ENDPOINTS.MESSAGES(this.id), data).then(messageData => { | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.guild, this, messageData)) | ||
@@ -150,0 +154,0 @@ }).catch(e => { |
@@ -220,2 +220,3 @@ const Client = require('../client/client') | ||
this.followUpMessage = a | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.client.guilds.get(this.guildId) || this.guild, this.channel, a)) | ||
@@ -230,2 +231,3 @@ }).catch(e => { | ||
this.followUpMessage = a | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.client.guilds.get(this.guildId) || this.guild, this.channel, a)) | ||
@@ -247,2 +249,3 @@ }).catch(e => { | ||
this.followUpMessage = a | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.client.guilds.get(this.guildId) || this.guild, this.channel, a)) | ||
@@ -281,2 +284,3 @@ }).catch(e => { | ||
this.followUpMessage = a | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.client.guilds.get(this.guildId) || this.guild, this.channel, a)) | ||
@@ -312,2 +316,3 @@ }).catch(e => { | ||
if (IdMessageToEdit === this.followUpMessageId) this.followUpMessage = a | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.client.guilds.get(this.guildId) || this.guild, this.channel, a)) | ||
@@ -322,2 +327,3 @@ }).catch(e => { | ||
if (IdMessageToEdit === this.followUpMessageId) this.followUpMessage = a | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.client.guilds.get(this.guildId) || this.guild, this.channel, a)) | ||
@@ -339,2 +345,3 @@ }).catch(e => { | ||
if (IdMessageToEdit === this.followUpMessageId) this.followUpMessage = a | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.client.guilds.get(this.guildId) || this.guild, this.channel, a)) | ||
@@ -376,2 +383,3 @@ }).catch(e => { | ||
if (IdMessageToEdit === this.followUpMessageId) this.followUpMessage = a | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.client.guilds.get(this.guildId) || this.guild, this.channel, a)) | ||
@@ -378,0 +386,0 @@ }).catch(e => { |
@@ -377,2 +377,3 @@ const Client = require('../client/client') | ||
this.client.rest.post(this.client._ENDPOINTS.MESSAGES(this.id), data).then(messageData => { | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.guild, this, messageData)) | ||
@@ -385,2 +386,3 @@ }).catch(e => { | ||
this.client.rest.post(this.client._ENDPOINTS.MESSAGES(this.id), data).then(messageData => { | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.guild, this, messageData)) | ||
@@ -400,2 +402,3 @@ }).catch(e => { | ||
this.client.rest.post(this.client._ENDPOINTS.MESSAGES(this.id), data).then(messageData => { | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.guild, this, messageData)) | ||
@@ -432,2 +435,3 @@ }).catch(e => { | ||
this.client.rest.post(this.client._ENDPOINTS.MESSAGES(this.id), data).then(messageData => { | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.guild, this, messageData)) | ||
@@ -434,0 +438,0 @@ }).catch(e => { |
@@ -89,2 +89,3 @@ const Client = require('../client/client') | ||
this.client.rest.post(this.client._ENDPOINTS.MESSAGES(this.id), data).then(messageData => { | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.guild, this, messageData)) | ||
@@ -97,2 +98,3 @@ }).catch(e => { | ||
this.client.rest.post(this.client._ENDPOINTS.MESSAGES(this.id), data).then(messageData => { | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.guild, this, messageData)) | ||
@@ -112,2 +114,3 @@ }).catch(e => { | ||
this.client.rest.post(this.client._ENDPOINTS.MESSAGES(this.id), data).then(messageData => { | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.guild, this, messageData)) | ||
@@ -144,2 +147,3 @@ }).catch(e => { | ||
this.client.rest.post(this.client._ENDPOINTS.MESSAGES(this.id), data).then(messageData => { | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.guild, this, messageData)) | ||
@@ -146,0 +150,0 @@ }).catch(e => { |
@@ -78,2 +78,3 @@ const Client = require('../client/client') | ||
this.client.rest.post(this.client._ENDPOINTS.MESSAGES(this.id), data).then(messageData => { | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.guild, this, messageData)) | ||
@@ -86,2 +87,3 @@ }).catch(e => { | ||
this.client.rest.post(this.client._ENDPOINTS.MESSAGES(this.id), data).then(messageData => { | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.guild, this, messageData)) | ||
@@ -101,2 +103,3 @@ }).catch(e => { | ||
this.client.rest.post(this.client._ENDPOINTS.MESSAGES(this.channelId), data).then(messageData => { | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.guild, this, messageData)) | ||
@@ -132,2 +135,3 @@ }).catch(e => { | ||
this.client.rest.post(this.client._ENDPOINTS.MESSAGES(this.id), data).then(messageData => { | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.guild, this, messageData)) | ||
@@ -134,0 +138,0 @@ }).catch(e => { |
@@ -139,2 +139,3 @@ const Client = require('../client/client') | ||
this.client.rest.post(this.client._ENDPOINTS.MESSAGES(this.id), data).then(messageData => { | ||
const Message = require('./Message') | ||
return resolve(new Message(this.client, this.guild, this, messageData)) | ||
@@ -141,0 +142,0 @@ }).catch(e => { |
1700950
18469