is there a way to make an input component of a command?

i wanna make a msg command, is there a way to take a string in the same line as the msg function??

Continue to help post