From 818bf48e5d986d8c155b2706f96b629d709c1053 Mon Sep 17 00:00:00 2001 From: Pedro Lopez Date: Mon, 1 Nov 2021 21:30:34 -0400 Subject: [PATCH] fix: convert button ids to string --- src/structures/Buttons.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/Buttons.js b/src/structures/Buttons.js index 96442ed..a67b3fa 100644 --- a/src/structures/Buttons.js +++ b/src/structures/Buttons.js @@ -59,7 +59,7 @@ class Buttons { _format(buttons){ buttons = buttons.slice(0,3); // phone users can only see 3 buttons, so lets limit this return buttons.map((btn) => { - return {'buttonId':btn.id ? btn.id : Util.generateHash(6),'buttonText':{'displayText':btn.body},'type':1}; + return {'buttonId':btn.id ? String(btn.id) : Util.generateHash(6),'buttonText':{'displayText':btn.body},'type':1}; }); }