diff options
| author | Fuwn <[email protected]> | 2025-10-20 21:25:01 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-10-20 21:25:01 -0700 |
| commit | 3b5df0e0588fc153b5dabf3429fd6acf9254148f (patch) | |
| tree | bd8cae23c5c2f87c3602b7409d618ab658f0d9b2 /packages/gateway/src/index.ts | |
| parent | feat(gateway:roleMentionCooldown): Use Discord Blurple colour for embed (diff) | |
| download | umabotdiscord-3b5df0e0588fc153b5dabf3429fd6acf9254148f.tar.xz umabotdiscord-3b5df0e0588fc153b5dabf3429fd6acf9254148f.zip | |
feat(gateway:messageCreate): Add dmForwarder
Diffstat (limited to 'packages/gateway/src/index.ts')
| -rw-r--r-- | packages/gateway/src/index.ts | 4 |
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); |