summaryrefslogtreecommitdiff
path: root/packages/gateway/src/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gateway/src/index.ts')
-rw-r--r--packages/gateway/src/index.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/gateway/src/index.ts b/packages/gateway/src/index.ts
index 0bb9597..e0d55f5 100644
--- a/packages/gateway/src/index.ts
+++ b/packages/gateway/src/index.ts
@@ -1,4 +1,4 @@
-import { GatewayIntentBits, Client } from "discord.js";
+import { GatewayIntentBits, Client, Partials } from "discord.js";
import dotenv from "dotenv";
import { handleCommands } from "./commands";
import { handleListeners } from "./listeners";
@@ -12,7 +12,9 @@ const client = new Client({
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildVoiceStates,
+ GatewayIntentBits.DirectMessages,
],
+ partials: [Partials.Channel],
});
handleCommands(client);