From 56b0d8722b80c2850d04aada31cb90d047232b04 Mon Sep 17 00:00:00 2001 From: Jonathan Garbee Date: Fri, 11 Aug 2017 20:24:46 -0400 Subject: [PATCH] Default value for property on dialog (#247) --- lib/Dialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Dialog.js b/lib/Dialog.js index 33cdb1fd..dff77c73 100644 --- a/lib/Dialog.js +++ b/lib/Dialog.js @@ -23,12 +23,12 @@ class Dialog { * @param {string} message * @param {(string|undefined)} defaultValue */ - constructor(client, type, message, defaultValue) { + constructor(client, type, message, defaultValue = '') { this._client = client; this.type = type; this._message = message; this._handled = false; - this._defaultValue = defaultValue || ''; + this._defaultValue = defaultValue; } /**