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 toolkit2mo 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
Auth
AuthOP2mo ago
no idea why tf this aint working
treble/luna
treble/luna2mo ago
and what is happening instead do you get any errors, etc also, why is there a , after your string in .send
Auth
AuthOP2mo 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