Steffie
Steffie
DIAdiscord.js - Imagine an app
Created by Steffie on 7/8/2023 in #djs-questions
Newlines in `message.content`
Facepalm I think I found my problem. Thank you for taking the time
6 replies
DIAdiscord.js - Imagine an app
Created by Steffie on 7/8/2023 in #djs-questions
Newlines in `message.content`
function parseProfile(message)
{
const regex = new RegExp('\n')
console.log(regex.test(message.content))
}
function parseProfile(message)
{
const regex = new RegExp('\n')
console.log(regex.test(message.content))
}
this is giving me false, and I'm very confused lol
6 replies
DIAdiscord.js - Imagine an app
Created by Steffie on 7/8/2023 in #djs-questions
Newlines in `message.content`
I tried including the newline in my regex and, when that didn't work, I tried splitting the message into an array by newlines. console.logging it also usually shows them and it didn't. Its entirely possible I messed something up though, and I can go back and try again (and/or try to strip it down to a few lines of code to post here)
6 replies