From 0f4983852e11da59903a4e2de69f234550edbda5 Mon Sep 17 00:00:00 2001 From: Amish Shah Date: Mon, 1 May 2017 14:57:27 +0100 Subject: [PATCH] Fix ban message delete days --- src/structures/Guild.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index d238258a6..8c40c7c8e 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -682,9 +682,9 @@ class Guild { */ ban(user, options = {}) { if (typeof options === 'number') { - options = { reason: null, days: options }; + options = { reason: null, 'delete-message-days': options }; } else if (typeof options === 'string') { - options = { reason: options, days: 0 }; + options = { reason: options, 'delete-message-days': 0 }; } return this.client.rest.methods.banGuildMember(this, user, options); }