title: How can I make my bot commands only run on servers and not on private messages?
body: <p>What happens is that if I send a command like the avatar command or some moderation command to the bot via private message, it causes an error because it doesn't get the properties it requires.</p>
  <p>I am using discord js v12</p>