What @Firepup650 said was right, msg.content is not a function, it is a str. Other than that, here is a tip: use ext.commands off the bat, it is easier to use, and if you do not use it (I made this mistake) you will make something quite painful in the end. (Mine had main, main1, main2, and the code was super messy)