MessagePrompter does not collect response

I've created a messageprompter like so:
import { MessagePrompter } from '@sapphire/discord.js-utilities';

// channel is acquired (dm channel), interaction user is acquired
const descriptionHandler = new MessagePrompter('Please give a description.', 'message')
const description: Message = await descriptionHandler.run(channel, interaction.user) as Message
import { MessagePrompter } from '@sapphire/discord.js-utilities';

// channel is acquired (dm channel), interaction user is acquired
const descriptionHandler = new MessagePrompter('Please give a description.', 'message')
const description: Message = await descriptionHandler.run(channel, interaction.user) as Message
However this returns as error an empty map. What could be the issue?
Solution:
I forgot to add the gateway intent bit for direct messages, oops
Jump to solution
2 Replies
Ivan
IvanOP4w ago
(yes it does have message content intent, and followed all other steps in documentation)
Solution
Ivan
Ivan4w ago
I forgot to add the gateway intent bit for direct messages, oops

Did you find this page helpful?