I was making a set prefix command and sometimes this error occurred:
Type Error: Cannot read property of "id" of null
This is the code