'message.content.toUpperCase().includes()' it's wrong? or Im missing something

help <:9_:1087454815384248393>
client.on("messageCreate", async (message) => {

switch (message.content.toUpperCase().includes()) {

case `CRAZY`:

message.reply("Crazy? I Was Crazy Once. They Locked Me In A Room. A Rubber Room. A Rubber Room With Rats. And Rats Make Me Crazy.")

break;
}
})
client.on("messageCreate", async (message) => {

switch (message.content.toUpperCase().includes()) {

case `CRAZY`:

message.reply("Crazy? I Was Crazy Once. They Locked Me In A Room. A Rubber Room. A Rubber Room With Rats. And Rats Make Me Crazy.")

break;
}
})
2 Replies
d.js toolkit
d.js toolkit16mo 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
TRKako
TRKakoOP16mo ago
what oh shit you're right dont worry, I figured out how to make this work, ijijija the code in case someone need it (fixed of course)
client.on('messageCreate', async (message) => {
if(message.author.id == client.user.id) return;
if(message.content.toUpperCase('CRAZY').includes('CRAZY')){

message.reply("Crazy? I Was Crazy Once. They Locked Me In A Room. A Rubber Room. A Rubber Room With Rats. And Rats Make Me Crazy.")
}});
client.on('messageCreate', async (message) => {
if(message.author.id == client.user.id) return;
if(message.content.toUpperCase('CRAZY').includes('CRAZY')){

message.reply("Crazy? I Was Crazy Once. They Locked Me In A Room. A Rubber Room. A Rubber Room With Rats. And Rats Make Me Crazy.")
}});
Want results from more Discord servers?
Add your server