From 03f46ef64373919b4897b2570ff99a22ecd4639f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Serna?= Date: Thu, 14 Jul 2022 14:17:34 -0300 Subject: [PATCH] Update component example --- examples/components/mod.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/components/mod.ts b/examples/components/mod.ts index fb52bc6..285e4ef 100644 --- a/examples/components/mod.ts +++ b/examples/components/mod.ts @@ -36,9 +36,11 @@ session.on("messageCreate", (message) => { console.log(args, name); if (name === 'ping') { - message.reply({ components: [row] }) - .then(() => {}) - .catch((e) => console.error(e)); + message.reply({ + content: 'pong!', + }) + .then(() => {}) + .catch((e) => console.error(e)); } });