Don't send files in edit request (#2199)

This commit is contained in:
Alex
2017-12-31 21:19:05 +02:00
committed by Crawl
parent 4063a3a16b
commit 59d5c5a947

View File

@@ -377,10 +377,10 @@ class Message extends Base {
}
if (!options.content) options.content = content;
const { data, files } = await createMessage(this, options);
const { data } = await createMessage(this, options);
return this.client.api.channels[this.channel.id].messages[this.id]
.patch({ data, files })
.patch({ data })
.then(d => {
const clone = this._clone();
clone._patch(d);