diff --git a/packages/discord.js/src/structures/Attachment.js b/packages/discord.js/src/structures/Attachment.js index e0662d1af..6481c8687 100644 --- a/packages/discord.js/src/structures/Attachment.js +++ b/packages/discord.js/src/structures/Attachment.js @@ -13,14 +13,14 @@ const Util = require('../util/Util'); * Represents an attachment */ class Attachment { - constructor({ url, filename, ...data }) { - this.attachment = url; + constructor(data) { + this.attachment = data.url; /** * The name of this attachment * @type {string} */ - this.name = filename; - if (data) this._patch(data); + this.name = data.filename; + this._patch(data); } _patch(data) {