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; }
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; }