title: How to get a discord bot to call its own commands
body: <p>So I have a bot, and I want it to call commands that I've created from within the code. I tried e.Channel.SendMessage("!command"), where ! is the prefix and 'command' is the command</p>
  
  <pre><code>private newCommand()
  {
      cmd.CreateCommand("command")
          .Do(async (e) =&gt;
          {
          // Some command stuff
          }
  }
  </code></pre>
  
  <p>So like, the command executes normally if I or someone else types !command, but how can I get the bot itself to call the command from within the code.</p>
  
  <p>Like say for example, I have this code:</p>
  
  <pre><code>discord.MessageReceived += async (s, e) =&gt;
          {
              if (!e.Message.IsAuthor &amp;&amp; e.Message.User.Id == blah)
              {
                  await e.Channel.SendMessage("Yo man");
  
                  // how do I perform command??
                  await e.Channel.SendMessage("!command"); // doesn't do anything
              }
          };
  </code></pre>
  
  <p>is there any way I can do this without having duplicate code from my command pasted into the MessageReceived section?</p>