Browse Source

Added a simpler CommandContext constructor

tags/1.0-rc
RogueException 8 years ago
parent
commit
890318ecfc
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      src/Discord.Net.Commands/CommandContext.cs

+ 8
- 0
src/Discord.Net.Commands/CommandContext.cs View File

@@ -18,5 +18,13 @@
User = user;
Message = msg;
}
public CommandContext(IDiscordClient client, IUserMessage msg)
{
Client = client;
Guild = (msg.Channel as IGuildChannel).Guild;
Channel = msg.Channel;
User = msg.Author;
Message = msg;
}
}
}

Loading…
Cancel
Save