devland.js
Advanced tools
Comparing version 1.1.59 to 1.1.60
@@ -12,3 +12,3 @@ { | ||
"name": "devland.js", | ||
"version": "1.1.59", | ||
"version": "1.1.60", | ||
"description": "A powerful API wrapper for the Discord API designed for modern bots", | ||
@@ -15,0 +15,0 @@ "main": "index.js", |
@@ -219,2 +219,3 @@ const Client = require('../client/client') | ||
this.followUpMessageId = a.id | ||
this.followUpMessage = a | ||
return resolve(new Message(this.client, this.client.guilds.get(this.guildId) || this.guild, this.channel, a)) | ||
@@ -228,2 +229,3 @@ }).catch(e => { | ||
this.followUpMessageId = a.id | ||
this.followUpMessage = a | ||
return resolve(new Message(this.client, this.client.guilds.get(this.guildId) || this.guild, this.channel, a)) | ||
@@ -244,2 +246,3 @@ }).catch(e => { | ||
this.followUpMessageId = a.id | ||
this.followUpMessage = a | ||
return resolve(new Message(this.client, this.client.guilds.get(this.guildId) || this.guild, this.channel, a)) | ||
@@ -300,2 +303,3 @@ }).catch(e => { | ||
this.client.rest.patch(this.client._ENDPOINTS.WEBHOOKS_TOKEN(this.application_id, this.token) + '/messages/' + this.followUpMessageId, data).then((a) => { | ||
this.followUpMessage = a | ||
return resolve(new Message(this.client, this.client.guilds.get(this.guildId) || this.guild, this.channel, a)) | ||
@@ -309,2 +313,3 @@ }).catch(e => { | ||
this.client.rest.patch(this.client._ENDPOINTS.WEBHOOKS_TOKEN(this.application_id, this.token) + '/messages/' + this.followUpMessageId, data).then((a) => { | ||
this.followUpMessage = a | ||
return resolve(new Message(this.client, this.client.guilds.get(this.guildId) || this.guild, this.channel, a)) | ||
@@ -325,2 +330,3 @@ }).catch(e => { | ||
this.client.rest.patch(this.client._ENDPOINTS.WEBHOOKS_TOKEN(this.application_id, this.token) + '/messages/' + this.followUpMessageId, data).then((a) => { | ||
this.followUpMessage = a | ||
return resolve(new Message(this.client, this.client.guilds.get(this.guildId) || this.guild, this.channel, a)) | ||
@@ -345,3 +351,2 @@ }).catch(e => { | ||
} | ||
if (Array.isArray(options['components'])) data['components'] = [] | ||
@@ -363,2 +368,3 @@ if (options['components'] === null) data['components'] = [] | ||
this.client.rest.patch(this.client._ENDPOINTS.WEBHOOKS_TOKEN(this.application_id, this.token) + '/messages/' + this.followUpMessageId, data).then((a) => { | ||
this.followUpMessage = a | ||
return resolve(new Message(this.client, this.client.guilds.get(this.guildId) || this.guild, this.channel, a)) | ||
@@ -365,0 +371,0 @@ }).catch(e => { |
1594023
16440