Skip to content

Commit

Permalink
Try allowing DMs
Browse files Browse the repository at this point in the history
  • Loading branch information
wengj9 committed Sep 28, 2024
1 parent f987668 commit 608a72c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import { Client, Events, GatewayIntentBits, Interaction } from "discord.js";
import { processQueueLoop } from "./commands/prompt.js";
import { collectCommands, loadConfig } from "./utils.js";

const client = new Client({ intents: [GatewayIntentBits.Guilds] });
const client = new Client({
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.DirectMessages]
});

const commands = await collectCommands();
const commandMap = Object.fromEntries(commands.map((command) => [command.data.name, command]));
Expand Down

0 comments on commit 608a72c

Please sign in to comment.