From 8c810a8462501aa1ed80e7de648d9a6f799ee46d Mon Sep 17 00:00:00 2001 From: Shir Serlui <70711723+shirser121@users.noreply.github.com> Date: Mon, 29 Apr 2024 10:59:20 +0300 Subject: [PATCH] Fix: delete lines that remove data from this._data (#2958) --- src/structures/Message.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/structures/Message.js b/src/structures/Message.js index a761699..f26d3fb 100644 --- a/src/structures/Message.js +++ b/src/structures/Message.js @@ -295,12 +295,6 @@ class Message extends Base { this.allowMultipleAnswers = Boolean(!data.pollSelectableOptionsCount); this.pollInvalidated = data.pollInvalidated; this.isSentCagPollCreation = data.isSentCagPollCreation; - - delete this._data.pollName; - delete this._data.pollOptions; - delete this._data.pollSelectableOptionsCount; - delete this._data.pollInvalidated; - delete this._data.isSentCagPollCreation; } return super._patch(data);