Example #1
0
 public ReactionContext(BotContext botContext, IUserMessage msg)
     : base(botContext.Client, botContext.Database, botContext.Settings)
 {
     Guild   = (msg.Channel as SocketGuildChannel)?.Guild;
     Channel = msg.Channel;
     User    = msg.Author;
     Message = msg;
 }
Example #2
0
 public CommandContext(BotContext botContext, SocketUserMessage msg, SocketUser user = null) :
     base(botContext.Client, botContext.Database, botContext.Settings)
 {
     Guild = (msg.Channel as SocketGuildChannel)?.Guild;
     Channel = msg.Channel;
     User = user ?? msg.Author;
     Message = msg;
 }