unable to send message in channel

// Send DM to the user with the LeetCode question
await member.user.send(
`You have been timed out in ${member.guild.name}. To get your timeout removed, solve this LeetCode question and reply with submission link or screenshot: ${randomLeetCodeQuestion}`,
);
const redirectChannel = member.guild.channels.cache.get(config.REDIRECT_CHANNEL_ID);
await redirectChannel.send("yo");
// Send DM to the user with the LeetCode question
await member.user.send(
`You have been timed out in ${member.guild.name}. To get your timeout removed, solve this LeetCode question and reply with submission link or screenshot: ${randomLeetCodeQuestion}`,
);
const redirectChannel = member.guild.channels.cache.get(config.REDIRECT_CHANNEL_ID);
await redirectChannel.send("yo");
4 Replies
d.js toolkit
d.js toolkit3mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
Cloud
CloudOP3mo ago
no idea why tf this aint working
treble/luna
treble/luna3mo ago
and what is happening instead do you get any errors, etc also, why is there a , after your string in .send
Cloud
CloudOP3mo ago
HOW THE F THIS WORKED WGAT WHAT HUH lemme try recreating the error ive no idea what i did but it got fixed
Want results from more Discord servers?
Add your server