Skip to content

Commit

Permalink
Update snipe.js
Browse files Browse the repository at this point in the history
Signed-off-by: Wade <[email protected]>
  • Loading branch information
pakkographic authored Sep 24, 2024
1 parent 7fdf889 commit 1ad43ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/snipe.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// Importing Client,
// Message is also imported as we'll be using it later on.
const { Client, Message } = require("touchguild"); // JavaScript/TS (CommonJS)
const { Client, Message, GatewayLayerIntent } = require("touchguild"); // JavaScript/TS (CommonJS)
// TypeScript/JavaScript (ES): import { Client, Message } from "touchguild";

// Constructing Application Client (required)
const client = new Client({
token: "INSERT TOKEN"
token: "INSERT TOKEN",
intents: [GatewayLayerIntent.GUILD_MESSAGES, GatewayLayerIntent.MESSAGE_CONTENT]
});

// Listen for the Client 'ready' state to be emitted.
Expand Down

0 comments on commit 1ad43ac

Please sign in to comment.