Update docs to reflect IMessage->IUserMessage

As changed in 23a0316252
This commit is contained in:
Christopher F
2016-08-27 22:16:51 -04:00
parent 23a0316252
commit 8406bd8f73
12 changed files with 21 additions and 19 deletions

View File

@@ -33,8 +33,11 @@ public class Program
// Discover all of the commands in this assembly and load them.
await commands.LoadAssembly(Assembly.GetEntryAssembly());
}
public async Task HandleCommand(IMessage msg)
public async Task HandleCommand(IMessage paramMessage)
{
// Cast paramMessage to an IUserMessage, return if the message was a System message.
var msg = paramMessage as IUserMessage;
if (msg == null) return;
// Internal integer, marks where the command begins
int argPos = 0;
// Get the current user (used for Mention parsing)