From 3f2dce8678299108b16637e6fb10adba3f12baeb Mon Sep 17 00:00:00 2001 From: Wade Date: Tue, 24 Sep 2024 12:53:17 +0200 Subject: [PATCH] Update ping example Signed-off-by: Wade --- examples/ping.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/ping.js b/examples/ping.js index 5b9fbf4..088ee34 100644 --- a/examples/ping.js +++ b/examples/ping.js @@ -1,5 +1,8 @@ -const { Client } = require("touchguild"); -const client = new Client({ token: "INSERT TOKEN" }); +const { Client, GatewayLayerIntent } = require("touchguild"); +const client = new Client({ + token: "INSERT TOKEN", + intents: [GatewayLayerIntent.GUILD_MESSAGES, GatewayLayerIntent.MESSAGE_CONTENT] +}); client.on("ready", () => { console.log("Ready as", client.user.username);